diff --git a/.env.dist b/.env.dist old mode 100644 new mode 100755 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/app/Console/Commands/ModifyCacheMethod.php b/app/Console/Commands/ModifyCacheMethod.php old mode 100644 new mode 100755 diff --git a/app/Http/Middleware/ResourceNotFoundCacheMiddleware.php b/app/Http/Middleware/ResourceNotFoundCacheMiddleware.php old mode 100644 new mode 100755 diff --git a/bootstrap/app.php b/bootstrap/app.php index 036d456..094d3bf 100755 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -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; diff --git a/config/logging.php b/config/logging.php old mode 100644 new mode 100755 index 372fc9e..adcbebc --- a/config/logging.php +++ b/config/logging.php @@ -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, ],