Merge remote-tracking branch 'origin/main' into profile-modal
This commit is contained in:
commit
7e387e1d52
6 changed files with 194 additions and 4 deletions
|
@ -98,6 +98,10 @@ export const useApi = () => {
|
|||
await fetchWithApi("/auth/reset-password", { method: "POST", body: { password, token } });
|
||||
}
|
||||
|
||||
async function fetchInvite(id: string): Promise<GuildResponse | undefined> {
|
||||
return await fetchWithApi(`/invites/${id}`);
|
||||
}
|
||||
|
||||
return {
|
||||
fetchGuilds,
|
||||
fetchGuild,
|
||||
|
@ -120,6 +124,7 @@ export const useApi = () => {
|
|||
fetchInstanceStats,
|
||||
sendVerificationEmail,
|
||||
sendPasswordResetEmail,
|
||||
resetPassword
|
||||
resetPassword,
|
||||
fetchInvite
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue