diff options
Diffstat (limited to 'cmd/dashboard')
| -rw-r--r-- | cmd/dashboard/main.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 893a46f..3699a12 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -161,7 +161,7 @@ func main() { r.Use(middleware.Recoverer) r.Use(middleware.Timeout(config.RequestTimeout)) r.Use(appmiddleware.SecurityHeaders(cfg.Debug)) // Security headers - r.Use(sessionManager.LoadAndSave) // Session middleware must be applied globally + r.Use(sessionManager.LoadAndSave) // Session middleware must be applied globally // Service gateway — upstream services proxied through doot's auth + SSL layer. // Each mount registers a path prefix, upstream URL, and any public webhook paths. @@ -296,7 +296,6 @@ func main() { }) } - // Protected routes (auth required) r.Group(func(r chi.Router) { r.Use(authHandlers.Middleware().CSRFProtect) @@ -330,6 +329,12 @@ func main() { r.Post("/uncomplete-atom", h.HandleUncompleteAtom) r.Post("/defer-atom", h.HandleDeferAtom) + // Chain checklist view (Tasks tab) + r.Get("/chains/{id}", h.HandleChainDetailView) + r.Post("/chains/{id}/pause", h.HandleChainPause) + r.Post("/chains/{id}/resume", h.HandleChainResume) + r.Post("/chains/{id}/abandon", h.HandleChainAbandon) + // Unified Quick Add (for Tasks tab) r.Post("/unified-add", h.HandleUnifiedAdd) r.Get("/partials/lists", h.HandleGetListsOptions) |
