Loading packages/client/src/lib/api.ts +13 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,19 @@ export const API = { }), }, }, mod: { announce: (title: string, body?: string) => fetch("/api/mod/user/@all/notice", { method: "POST", headers: { "Content-Type": "application/json", body: JSON.stringify({ title, body, }), }, }), }, macro: { syncEventFromFEAPI: (event_id: string) => fetch("https://api.fediverse.events/v1/events/" + event_id) Loading Loading
packages/client/src/lib/api.ts +13 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,19 @@ export const API = { }), }, }, mod: { announce: (title: string, body?: string) => fetch("/api/mod/user/@all/notice", { method: "POST", headers: { "Content-Type": "application/json", body: JSON.stringify({ title, body, }), }, }), }, macro: { syncEventFromFEAPI: (event_id: string) => fetch("https://api.fediverse.events/v1/events/" + event_id) Loading