aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reviewDB/reviewDbApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/reviewDB/reviewDbApi.ts')
-rw-r--r--src/plugins/reviewDB/reviewDbApi.ts9
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 || "",
+ },
+ });
+}