1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 20:37:42 +00:00

add update all notification API

This commit is contained in:
孙永强
2024-11-27 15:06:30 +08:00
parent f4558a0f46
commit ef77d90280
3 changed files with 50 additions and 15 deletions

View File

@@ -1460,6 +1460,11 @@ class SeafileAPI {
return this.req.get(url, { params: params });
}
updateAllNotifications() {
const url = this.server + '/api/v2.1/all-notifications/';
return this.req.put(url);
}
listNotifications(page, perPage) {
const url = this.server + '/api/v2.1/notifications/';
let params = {