forked from NYANDEV/forgejo
Notifications - Step 2
This commit is contained in:
parent
42904cb98a
commit
6069abe5fd
9 changed files with 193 additions and 1 deletions
|
@ -168,6 +168,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.
|
||||
|
@ -578,6 +580,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