fix:GET /logout 요청 시 로그인 페이지로 리다이렉트

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-02 09:32:57 +09:00
parent 06a0146b12
commit d9757cc567

View File

@@ -89,6 +89,9 @@
| - hq.member: 본사(HQ) 테넌트 소속 확인
*/
// GET /logout 요청 시 로그인 페이지로 리다이렉트
Route::get('/logout', fn() => redirect()->route('login'));
Route::middleware(['auth', 'hq.member', 'password.changed'])->group(function () {
Route::post('/logout', [LoginController::class, 'logout'])->name('logout');