This commit is contained in:
Irfan 2019-07-17 05:26:39 +05:00
parent 33e2293b47
commit afbe883ce1
7 changed files with 23 additions and 24 deletions

0
.env.dist Normal file → Executable file
View File

0
.github/FUNDING.yml vendored Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
app/Console/Commands/ModifyCacheMethod.php Normal file → Executable file
View File

View File

View 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
View 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,
],