forked from forgejo/forgejo
Merge pull request #539 from andreynering/notifications-step-2
Notifications - Step 2
This commit is contained in:
commit
79d527195d
10 changed files with 233 additions and 6 deletions
|
@ -167,6 +167,8 @@ func runWeb(ctx *cli.Context) error {
|
|||
|
||||
bindIgnErr := binding.BindIgnErr
|
||||
|
||||
m.Use(user.GetNotificationCount)
|
||||
|
||||
// FIXME: not all routes need go through same middlewares.
|
||||
// Especially some AJAX requests, we can reduce middleware number to improve performance.
|
||||
// Routers.
|
||||
|
@ -577,6 +579,8 @@ func runWeb(ctx *cli.Context) error {
|
|||
})
|
||||
// ***** END: Repository *****
|
||||
|
||||
m.Get("/notifications", reqSignIn, user.Notifications)
|
||||
|
||||
m.Group("/api", func() {
|
||||
apiv1.RegisterRoutes(m)
|
||||
}, ignSignIn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue