Add exceptional hour modals

This commit is contained in:
2025-10-19 21:17:28 +01:00
parent 5efc893269
commit 17ebaeba94
4 changed files with 667 additions and 156 deletions
+4 -3
View File
@@ -77,11 +77,11 @@ func main() {
r.Post("/register", authHandlers.RegisterHandler)
r.Post("/login", authHandlers.LoginHandler)
// --- Scheduling public GET routes ---
// --- Scheduling Routes ---
r.Route("/scheduling", func(r chi.Router) {
// Public GET routes
r.Get("/default-hours", scheduling.GetDefaultHours)
r.Get("/exceptional-groups", scheduling.ListExceptionalGroups)
r.Get("/exceptional-applications", scheduling.ListExceptionalApplications)
r.Get("/working-hours", scheduling.GetWorkingHours)
r.Get("/available-hours", scheduling.GetAvailableHours)
@@ -92,7 +92,8 @@ func main() {
r.Put("/default-hours", scheduling.UpdateDefaultHours)
r.Post("/exceptional-groups", scheduling.CreateExceptionalGroup)
r.Post("/exceptional-applications", scheduling.CreateExceptionalApplication)
r.Delete("/exceptional-groups", scheduling.DeleteExceptionalGroup)
r.Put("/exceptional-applications", scheduling.UpdateExceptionalApplications)
})
})