mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
disable v3 for now for testing
This commit is contained in:
parent
1d0e07e3a4
commit
1bc746db77
@ -163,7 +163,7 @@ $app->router->group(
|
||||
}
|
||||
);
|
||||
|
||||
$app->router->group(
|
||||
/*$app->router->group(
|
||||
[
|
||||
'prefix' => 'v3',
|
||||
'namespace' => 'App\Http\Controllers\V3',
|
||||
@ -172,6 +172,25 @@ $app->router->group(
|
||||
function ($router) {
|
||||
require __DIR__.'/../routes/web.v3.php';
|
||||
}
|
||||
);*/
|
||||
|
||||
$app->router->group(
|
||||
[
|
||||
'prefix' => 'v3',
|
||||
'namespace' => 'App\Http\Controllers\V3',
|
||||
'middleware' => $commonMiddleware
|
||||
],
|
||||
function ($router) {
|
||||
$router->get('/', function () {
|
||||
return response()
|
||||
->json([
|
||||
'status' => 400,
|
||||
'type' => 'HttpException',
|
||||
'message' => 'Unavailable on test endpoint.',
|
||||
'error' => null
|
||||
], 400);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
$app->router->group(
|
||||
|
Loading…
x
Reference in New Issue
Block a user