mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
* introduce GET /notifications/new * add TEST * use Sprintf instead of path.Join * Error more verbose * return number of notifications if unreaded exist * 200 http status for available notifications
This commit is contained in:
@@ -518,6 +518,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Combo("").
|
||||
Get(notify.ListNotifications).
|
||||
Put(notify.ReadNotifications)
|
||||
m.Get("/new", notify.NewAvailable)
|
||||
m.Combo("/threads/:id").
|
||||
Get(notify.GetThread).
|
||||
Patch(notify.ReadThread)
|
||||
|
Reference in New Issue
Block a user