From 7343f5d59832936783e6a90552ad8d15440ab7c5 Mon Sep 17 00:00:00 2001
From: Jethro Lin
Date: Sun, 17 Nov 2024 14:38:39 +0800
Subject: [PATCH] fix bug for codes
---
config/api.php | 17 -----------------
routes/api.php | 6 ++++++
2 files changed, 6 insertions(+), 17 deletions(-)
delete mode 100644 config/api.php
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 () {
// 认证相关