diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2022-09-29 21:09:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 22:09:14 +0300 |
commit | 08609d439d81f65c4f691609acaa29c1c7e96757 (patch) | |
tree | e1502d6573ba91588d4aeafa57e0c9ed69c179a1 /routers/web/web.go | |
parent | 3b6a7e5c8a994836d034adde4277b50ade020d1b (diff) | |
download | gitea-08609d439d81f65c4f691609acaa29c1c7e96757.tar.gz gitea-08609d439d81f65c4f691609acaa29c1c7e96757.zip |
Add pages to view watched repos and subscribed issues/PRs (#17156)
Adds GitHub-like pages to view watched repos and subscribed issues/PRs
This is my second try to fix this, but it is better than the first since
it doesn't uses a filter option which could be slow when accessing
`/issues` or `/pulls` and it shows both pulls and issues (the first try
is #17053).
Closes #16111
Replaces and closes #17053
![Screenshot](https://user-images.githubusercontent.com/80460567/134782937-3112f7da-425a-45b6-9511-5c9695aee896.png)
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/web.go')
-rw-r--r-- | routers/web/web.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/web/web.go b/routers/web/web.go index 1852ecc2e2..acce071891 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -1269,6 +1269,8 @@ func RegisterRoutes(m *web.Route) { m.Group("/notifications", func() { m.Get("", user.Notifications) + m.Get("/subscriptions", user.NotificationSubscriptions) + m.Get("/watching", user.NotificationWatching) m.Post("/status", user.NotificationStatusPost) m.Post("/purge", user.NotificationPurgePost) m.Get("/new", user.NewAvailable) |