API接口-authtoken

This commit is contained in:
2026-03-20 10:55:47 +08:00
parent 5c71376713
commit 0b0821c5c7
4 changed files with 4 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ Route::post('/api/account/retrievePassword', [\app\api\controller\Account::class
Route::post('/api/ems/send', [\app\api\controller\Ems::class, 'send']);
// api/v1 鉴权
Route::add(['GET', 'POST'], '/api/v1/authToken', [\app\api\controller\v1\Auth::class, 'authToken']);
Route::get('/api/v1/authToken', [\app\api\controller\v1\Auth::class, 'authToken']);
// ==================== Admin 路由 ====================
// Admin 多为 JSON API前端可能用 GET 传参查列表、POST 提交表单,使用 any 确保兼容