feat(api): add schedule series and calendar endpoints

This commit is contained in:
avicenan
2026-03-24 22:08:14 +07:00
parent 2f415999e3
commit c8497c5dd0
5 changed files with 815 additions and 2 deletions

View File

@ -58,6 +58,7 @@ import { DoctorItemController } from '../controllers/doctor_item';
import { UserToRoomController } from '../controllers/user_to_room';
import { RoomToPharmacyController } from '../controllers/room_to_pharmacy';
import { PlanningVerificatorController } from '../controllers/pharmacy/planning_verificator';
import { ScheduleController } from '../controllers/schedule';
export class RoutePrivate {
static setup(app: express.Application) {
@ -205,6 +206,14 @@ export class RoutePrivate {
app.delete('/api/doctor-schedule/delete/:id/:hard', DoctorScheduleController.delete)
app.put('/api/doctor-schedule/restore/:id', DoctorScheduleController.restore)
app.get('/api/schedule/list', ScheduleController.list)
app.post('/api/schedule/create', ScheduleController.create)
app.get('/api/schedule/detail/:id', ScheduleController.detail)
app.put('/api/schedule/update/:id', ScheduleController.update)
app.get('/api/schedule/options', ScheduleController.options)
app.get('/api/schedule/calendar', ScheduleController.calendar)
app.post('/api/schedule/:id/create-exception', ScheduleController.createException)
app.get('/api/doctor-item/list', DoctorItemController.listAll)
app.get('/api/doctor-item/list-fav', DoctorItemController.listFav)
app.post('/api/doctor-item/select-fav', DoctorItemController.selectFav)