mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
clean up
This commit is contained in:
parent
33e2293b47
commit
afbe883ce1
0
.github/FUNDING.yml
vendored
Normal file → Executable file
0
.github/FUNDING.yml
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
app/Console/Commands/ModifyCacheMethod.php
Normal file → Executable file
0
app/Console/Commands/ModifyCacheMethod.php
Normal file → Executable file
0
app/Http/Middleware/ResourceNotFoundCacheMiddleware.php
Normal file → Executable file
0
app/Http/Middleware/ResourceNotFoundCacheMiddleware.php
Normal file → Executable file
@ -99,18 +99,6 @@ $jikan = new \Jikan\MyAnimeList\MalClient(app('GuzzleClient'));
|
||||
$app->instance('JikanParser', $jikan);
|
||||
|
||||
|
||||
/*$app->router->group(
|
||||
[
|
||||
'prefix' => 'v4',
|
||||
'namespace' => 'App\Http\Controllers\V4',
|
||||
'middleware' => $commonMiddleware
|
||||
],
|
||||
function ($router) {
|
||||
require __DIR__.'/../routes/web.v4.php';
|
||||
}
|
||||
);*/
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Load The Application Routes
|
||||
@ -153,18 +141,12 @@ $app->router->group(
|
||||
|
||||
$app->router->group(
|
||||
[
|
||||
'prefix' => 'v2',
|
||||
'prefix' => '/',
|
||||
'namespace' => 'App\Http\Controllers\V3',
|
||||
'middleware' => $commonMiddleware
|
||||
],
|
||||
function ($router) {
|
||||
$router->get('/', function () {
|
||||
return response()
|
||||
->json([
|
||||
'status' => 400,
|
||||
'type' => 'HttpException',
|
||||
'message' => 'This version is depreciated. Please check the documentation for the latest and supported versions.',
|
||||
'error' => null
|
||||
], 400);
|
||||
});
|
||||
require __DIR__.'/../routes/web.v3.php';
|
||||
}
|
||||
);
|
||||
|
||||
@ -185,5 +167,22 @@ $app->router->group(
|
||||
}
|
||||
);
|
||||
|
||||
$app->router->group(
|
||||
[
|
||||
'prefix' => 'v2',
|
||||
],
|
||||
function ($router) {
|
||||
$router->get('/', function () {
|
||||
return response()
|
||||
->json([
|
||||
'status' => 400,
|
||||
'type' => 'HttpException',
|
||||
'message' => 'This version is depreciated. Please check the documentation for the latest and supported versions.',
|
||||
'error' => null
|
||||
], 400);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
return $app;
|
||||
|
4
config/logging.php
Normal file → Executable file
4
config/logging.php
Normal file → Executable file
@ -42,13 +42,13 @@ return [
|
||||
|
||||
'single' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'path' => storage_path('logs/lumen.log'),
|
||||
'level' => 'debug',
|
||||
],
|
||||
|
||||
'daily' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'path' => storage_path('logs/daily/lumen.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 14,
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user