aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/notify/user.go')
-rw-r--r--routers/api/v1/notify/user.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go
index d16e4da0e0..7f731e25d4 100644
--- a/routers/api/v1/notify/user.go
+++ b/routers/api/v1/notify/user.go
@@ -41,6 +41,14 @@ func ListNotifications(ctx *context.APIContext) {
// type: string
// format: date-time
// required: false
+ // - name: page
+ // in: query
+ // description: page number of results to return (1-based)
+ // type: integer
+ // - name: limit
+ // in: query
+ // description: page size of results, maximum page size is 50
+ // type: integer
// responses:
// "200":
// "$ref": "#/responses/NotificationThreadList"
@@ -51,6 +59,7 @@ func ListNotifications(ctx *context.APIContext) {
return
}
opts := models.FindNotificationOptions{
+ ListOptions: utils.GetListOptions(ctx),
UserID: ctx.User.ID,
UpdatedBeforeUnix: before,
UpdatedAfterUnix: since,