aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-01-12 02:27:09 -0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-12 12:27:09 +0800
commit769e0a3ea6455cb908cd7167d651024ce5c7eee3 (patch)
tree55db340bdd5aa03cd5455df6d045007e7afdb5be /cmd
parentcbf2a967c58780ee23ff66fff1b6699f9f765294 (diff)
downloadgitea-769e0a3ea6455cb908cd7167d651024ce5c7eee3.tar.gz
gitea-769e0a3ea6455cb908cd7167d651024ce5c7eee3.zip
Notifications: mark as read/unread and pin (#629)
* Use relative URLs * Notifications - Mark as read/unread * Feature of pinning a notification * On view issue, do not mark as read a pinned notification
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)