fix:휴일 년도별 삭제 POST 방식으로 변경

- DELETE /year/{year} → POST /destroy-year 변경
- JavaScript fetch도 POST + JSON body 방식으로 변경

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-06 09:23:13 +09:00
parent f81eff1ae2
commit e64be112e1
2 changed files with 8 additions and 6 deletions

View File

@@ -399,7 +399,7 @@
Route::get('/list', [HolidayController::class, 'list'])->name('list');
Route::post('/', [HolidayController::class, 'store'])->name('store');
Route::post('/bulk', [HolidayController::class, 'bulkStore'])->name('bulk');
Route::delete('/year/{year}', [HolidayController::class, 'destroyByYear'])->name('destroy-year');
Route::post('/destroy-year', [HolidayController::class, 'destroyByYear'])->name('destroy-year');
Route::put('/{id}', [HolidayController::class, 'update'])->name('update');
Route::delete('/{id}', [HolidayController::class, 'destroy'])->name('destroy');
});