summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/controller.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 16:29:45 -0600
committermo khan <mo@mokhan.ca>2025-04-28 09:07:31 -0600
commit10acef83528c746abeb597490d516a55b5a0955e (patch)
tree16979017ec6579b24afc84fb2ac02301cc7edef3 /app/controllers/dashboard/controller.go
parent6f03359ac68865d31c26c4600d79c3e985f002b4 (diff)
fix: render 404 when not logged in
Diffstat (limited to 'app/controllers/dashboard/controller.go')
-rw-r--r--app/controllers/dashboard/controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/controller.go b/app/controllers/dashboard/controller.go
index ef5b18d..220871f 100644
--- a/app/controllers/dashboard/controller.go
+++ b/app/controllers/dashboard/controller.go
@@ -17,7 +17,7 @@ func New() *Controller {
}
func (c *Controller) MountTo(mux *http.ServeMux) {
- requireUser := middleware.RequireUser(http.StatusFound, "/")
+ requireUser := middleware.RequireUser()
mux.Handle("GET /dashboard", requireUser(http.HandlerFunc(c.Show)))
}