mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
60 lines
1.6 KiB
PHP
60 lines
1.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable/disable
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Set to false if you want to effectively disable the API.
|
|
|
|
|
*/
|
|
|
|
'enable' => true,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable/disable search
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Whether or not to enable the post search endpoint.
|
|
|
|
|
*/
|
|
|
|
'enable_search' => true,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Resources
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Override to return your own resources for API responses
|
|
|
|
|
*/
|
|
|
|
'resources' => [
|
|
'category' => TeamTeaTime\Forum\Http\Resources\CategoryResource::class,
|
|
'thread' => TeamTeaTime\Forum\Http\Resources\ThreadResource::class,
|
|
'post' => TeamTeaTime\Forum\Http\Resources\PostResource::class,
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Router
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| API router config.
|
|
|
|
|
*/
|
|
|
|
'router' => [
|
|
'prefix' => '/forum/api',
|
|
'as' => 'forum.api.',
|
|
'namespace' => '\TeamTeaTime\Forum\Http\Controllers\Api',
|
|
'middleware' => ['api', 'auth:api'],
|
|
'auth_middleware' => ['auth:api'],
|
|
],
|
|
|
|
];
|