summaryrefslogtreecommitdiff
path: root/cmd/dashboard/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dashboard/main.go')
-rw-r--r--cmd/dashboard/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index b38b9e1..4b67c2a 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -369,6 +369,8 @@ func main() {
return handlers.WidgetAuthMiddleware(cfg.WidgetToken, next)
}
r.With(widgetAuth).Get("/api/widget", h.HandleWidgetGet)
+ r.With(widgetAuth).Get("/api/widget/detail", h.HandleWidgetDetail)
+ r.With(widgetAuth).Post("/api/widget/update", h.HandleWidgetUpdate)
r.With(widgetAuth).Post("/api/widget/complete", h.HandleWidgetComplete)
r.With(widgetAuth).Post("/api/widget/reschedule", h.HandleWidgetReschedule)
} else {