feat(frontend): add names+pronouns to edit profile page, add robots.txt

This commit is contained in:
Sam 2023-03-13 01:08:46 +01:00
parent d67aaefdc0
commit e8d45ed4e9
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
4 changed files with 153 additions and 27 deletions

View file

@ -3,7 +3,7 @@ import { apiFetch } from "$lib/api/fetch";
import type { PageServerLoad, Actions } from "./$types";
import { PUBLIC_BASE_URL } from "$env/static/public";
export const load = (async ({ locals, url }) => {
export const load = (async ({ url }) => {
try {
const resp = await apiFetch<CallbackResponse>("/auth/discord/callback", {
method: "POST",
@ -18,8 +18,6 @@ export const load = (async ({ locals, url }) => {
...resp,
};
} catch (e) {
console.log(e);
return { error: e as APIError };
}
}) satisfies PageServerLoad;