From a9273be2011253a10ef8c0faf5bc18b3871df545 Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Thu, 30 Apr 2026 11:48:08 +0100 Subject: [PATCH] feat: wire admin time-blocker routes Add GET/POST/DELETE /api/admin/time-blockers routes so admin blockers (staff meetings, holidays, late starts) can be created and managed via the API. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- backend/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/main.go b/backend/main.go index e448270..4147831 100644 --- a/backend/main.go +++ b/backend/main.go @@ -218,6 +218,12 @@ func main() { r.Get("/", notifications.GetNotifications) r.Post("/{id}/acknowledge", notifications.AcknowledgeNotification) }) + + r.Route("/admin/time-blockers", func(r chi.Router) { + r.Get("/", scheduling.ListTimeBlockers) + r.Post("/", scheduling.CreateTimeBlocker) + r.Delete("/{id}", scheduling.DeleteTimeBlocker) + }) }) })