aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index e698510aa5..a69bcf4b20 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -589,7 +589,10 @@ func runWeb(ctx *cli.Context) error {
})
// ***** END: Repository *****
- m.Get("/notifications", reqSignIn, user.Notifications)
+ m.Group("/notifications", func() {
+ m.Get("", user.Notifications)
+ m.Post("/status", user.NotificationStatusPost)
+ }, reqSignIn)
m.Group("/api", func() {
apiv1.RegisterRoutes(m)