fix: 登录/注册/登出 POST 路由补 .shtml 变体(表单 route() 生成 .shtml 后缀),修复 405;新增 AuthFlow 回归测试;全面确认前台 URL 全部 route() 生成无硬编码

This commit is contained in:
ak
2026-08-11 21:02:07 +08:00
parent fc6624cf84
commit f213549af3
12 changed files with 86 additions and 1 deletions
+4 -1
View File
@@ -62,11 +62,14 @@ Route::get('/comments', fn () => redirect()->route('comments', [], 301));
Route::get('/login.shtml', [AuthController::class, 'showLogin'])->name('login');
Route::get('/login', fn () => redirect()->route('login', [], 301));
Route::post('/login.shtml', [AuthController::class, 'login']);
Route::post('/login', [AuthController::class, 'login']);
Route::post('/logout', [AuthController::class, 'logout'])->name('logout');
Route::post('/logout.shtml', [AuthController::class, 'logout'])->name('logout');
Route::post('/logout', [AuthController::class, 'logout']);
Route::get('/register.shtml', [AuthController::class, 'showRegister'])->name('register');
Route::get('/register', fn () => redirect()->route('register', [], 301));
Route::post('/register.shtml', [AuthController::class, 'register']);
Route::post('/register', [AuthController::class, 'register']);
Route::get('/profile.shtml', [AuthController::class, 'profile'])->middleware('auth')->name('profile');