diff --git a/config/api.php b/config/api.php deleted file mode 100644 index 36f19de..0000000 --- a/config/api.php +++ /dev/null @@ -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), - ], -]; \ No newline at end of file diff --git a/routes/api.php b/routes/api.php index 2b8e88f..8b8fdb6 100644 --- a/routes/api.php +++ b/routes/api.php @@ -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 () { // 认证相关