diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/dashboard/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 920ccf2..ce91e6e 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -145,13 +145,15 @@ func main() { fileServer := http.FileServer(http.Dir(cfg.StaticDir)) r.Handle("/static/*", http.StripPrefix("/static/", fileServer)) + // Conditions page (public - no auth required) + r.Get("/conditions", h.HandleConditionsPage) + // Protected routes (auth required) r.Group(func(r chi.Router) { r.Use(authHandlers.Middleware().RequireAuth) // Dashboard r.Get("/", h.HandleDashboard) - r.Get("/conditions", h.HandleConditionsPage) r.Post("/api/refresh", h.HandleRefresh) r.Get("/api/tasks", h.HandleGetTasks) r.Get("/api/meals", h.HandleGetMeals) |
