diff --git a/composables/api.ts b/composables/api.ts index eff2c73..75a3811 100644 --- a/composables/api.ts +++ b/composables/api.ts @@ -94,6 +94,10 @@ export const useApi = () => { await fetchWithApi("/auth/reset-password", { method: "POST", body: { password, token } }); } + async function fetchInvite(id: string): Promise { + return await fetchWithApi(`/invites/${id}`); + } + return { fetchGuilds, fetchGuild, @@ -115,6 +119,7 @@ export const useApi = () => { fetchInstanceStats, sendVerificationEmail, sendPasswordResetEmail, - resetPassword + resetPassword, + fetchInvite } }