Foxnouns.NET/Foxnouns.Frontend/src/routes/auth/login/+page.server.ts

13 lines
275 B
TypeScript
Raw Normal View History

2024-06-12 03:50:46 +02:00
import request from "$lib/request.js";
type UrlsResponse = {
discord: string | null;
google: string | null;
tumblr: string | null;
};
export const load = async ({ fetch }) => {
const urls = await request<UrlsResponse>(fetch, "POST", "/auth/urls");
return { urls };
};