add GetAvailableHours

This commit is contained in:
2025-10-15 21:25:45 +01:00
parent 827b5d9b3d
commit 8c7d9d159f
2 changed files with 240 additions and 1 deletions
+4 -1
View File
@@ -113,8 +113,11 @@ func main() {
r.Post("/exceptional-applications", scheduling.CreateExceptionalApplication)
})
// Merged working hours by date range
// Merged working hours (default + exceptional)
r.Get("/working-hours", scheduling.GetWorkingHours)
// Fully calculated available hours (default + exceptional + bookings + lunch breaks)
r.Get("/available-hours", scheduling.GetAvailableHours)
})
fmt.Println("Server is listening on :8080")