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 } } diff --git a/pages/invite/[inviteId].vue b/pages/invite/[inviteId].vue new file mode 100644 index 0000000..ff4166e --- /dev/null +++ b/pages/invite/[inviteId].vue @@ -0,0 +1,180 @@ + + + + + \ No newline at end of file