mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 20:59:29 +02: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:
1 parent
ce274d652f
commit
44de66bf50
9 files changed
+107
-5
No files matched your search
@@ -26,3 +26,8 @@ type NotificationSubject struct {
|
||||
LatestCommentURL string `json:"latest_comment_url"`
|
||||
Type string `json:"type" binding:"In(Issue,Pull,Commit)"`
|
||||
}
|
||||
|
||||
// NotificationCount number of unread notifications
|
||||
type NotificationCount struct {
|
||||
New int64 `json:"new"`
|
||||
}
|
||||
Reference in new issue
Block a user