fix bug for codes
This commit is contained in:
parent
bc99dc6667
commit
7343f5d598
2 changed files with 6 additions and 17 deletions
|
|
@ -1,17 +0,0 @@
|
|||
return [
|
||||
'throttle' => [
|
||||
'enabled' => env('API_THROTTLE_ENABLED', true),
|
||||
'limit' => env('API_THROTTLE_LIMIT', 60),
|
||||
'decay_minutes' => env('API_THROTTLE_DECAY_MINUTES', 1),
|
||||
],
|
||||
|
||||
'cache' => [
|
||||
'ttl' => env('API_CACHE_TTL', 3600),
|
||||
'prefix' => env('API_CACHE_PREFIX', 'api_'),
|
||||
],
|
||||
|
||||
'pagination' => [
|
||||
'default_limit' => env('API_PAGINATION_LIMIT', 10),
|
||||
'max_limit' => env('API_PAGINATION_MAX_LIMIT', 100),
|
||||
],
|
||||
];
|
||||
|
|
@ -27,6 +27,12 @@
|
|||
// 公开路由
|
||||
Route::post('/auth/login', [AuthController::class, 'login']);
|
||||
|
||||
// 新增一個不經過驗證的路由
|
||||
Route::get('/check', function () {
|
||||
return response('CHECKED', 200)
|
||||
->header('Content-Type', 'text/plain');
|
||||
});
|
||||
|
||||
// 需要认证的路由
|
||||
Route::middleware('auth:sanctum')->group(function () {
|
||||
// 认证相关
|
||||
|
|
|
|||
Loading…
Reference in a new issue