Skip to content
Snippets Groups Projects
Commit a1fce5e0 authored by 조대희's avatar 조대희
Browse files

fix: 스케줄 라우터 endpoint 수정

parent 92c40352
No related branches found
No related tags found
1 merge request!31Develop
......@@ -18,9 +18,9 @@ router.get('/all', ScheduleController.getAllSchedules);
/**
* 개별 스케줄 조회
* Get /api/schedule/:id
* Get /api/schedule/:time_idx
*/
router.get('/:id', ScheduleController.getScheduleByTimeIdx);
router.get('/:time_idx', ScheduleController.getScheduleByTimeIdx);
/**
* 스케줄 생성
......@@ -30,15 +30,15 @@ router.post('/', ScheduleController.createSchedule);
/**
* 스케줄 수정
* PUT /api/schedule/:id
* PUT /api/schedule
*/
router.put('/:id', ScheduleController.updateSchedules);
router.put('/', ScheduleController.updateSchedules);
/**
* 스케줄 삭제
* DELETE /api/schedule/:id
* DELETE /api/schedule
*/
router.delete('/:id', ScheduleController.deleteSchedules);
router.delete('/', ScheduleController.deleteSchedules);
module.exports = router;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment