From e5c0898dd6ee4bae213aa2d727e15714739d2f91 Mon Sep 17 00:00:00 2001 From: Manti <67705577+mantikafasi@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:16:15 +0300 Subject: [ReviewDB] add emojis, discord markdown & notifications (#1718) Co-authored-by: V --- src/plugins/reviewDB/reviewDbApi.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/plugins/reviewDB/reviewDbApi.ts') 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 { 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 || "", + }, + }); +} -- cgit