diff options
Diffstat (limited to 'src/plugins/reviewDB/reviewDbApi.ts')
-rw-r--r-- | src/plugins/reviewDB/reviewDbApi.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/reviewDB/reviewDbApi.ts b/src/plugins/reviewDB/reviewDbApi.ts index e8008c8..5370a9b 100644 --- a/src/plugins/reviewDB/reviewDbApi.ts +++ b/src/plugins/reviewDB/reviewDbApi.ts @@ -140,3 +140,12 @@ export function getCurrentUserInfo(token: string): Promise<ReviewDBUser> { method: "POST", }).then(r => r.json()); } + +export function readNotification(id: number) { + return fetch(API_URL + `/api/reviewdb/notifications?id=${id}`, { + method: "PATCH", + headers: { + "Authorization": settings.store.token || "", + }, + }); +} |