From e6bf7f160c17ed8032477a1c8239fd561f87a263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 6 Feb 2026 09:13:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=ED=9C=B4=EC=9D=BC=20=EB=85=84=EB=8F=84?= =?UTF-8?q?=EB=B3=84=20=EC=82=AD=EC=A0=9C=20=EB=9D=BC=EC=9A=B0=ED=8A=B8=20?= =?UTF-8?q?=EC=88=9C=EC=84=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /year/{year} 라우트를 /{id} 보다 먼저 배치 - Laravel 라우트 매칭 우선순위 문제 해결 Co-Authored-By: Claude Opus 4.5 --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 051504ca..4bbda25e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -398,10 +398,10 @@ Route::get('/', [HolidayController::class, 'index'])->name('index'); Route::get('/list', [HolidayController::class, 'list'])->name('list'); Route::post('/', [HolidayController::class, 'store'])->name('store'); - Route::put('/{id}', [HolidayController::class, 'update'])->name('update'); - Route::delete('/{id}', [HolidayController::class, 'destroy'])->name('destroy'); Route::post('/bulk', [HolidayController::class, 'bulkStore'])->name('bulk'); Route::delete('/year/{year}', [HolidayController::class, 'destroyByYear'])->name('destroy-year'); + Route::put('/{id}', [HolidayController::class, 'update'])->name('update'); + Route::delete('/{id}', [HolidayController::class, 'destroy'])->name('destroy'); }); // 명함 OCR API