pronounscc/src/routes/login/+page.server.ts
2023-03-11 01:36:30 +01:00

16 lines
292 B
TypeScript

import { apiFetch } from "$lib/api/fetch";
export const load = async () => {
const resp = await apiFetch<UrlsResponse>("/auth/urls", {
method: "POST",
body: {
callback_domain: process.env.ORIGIN,
},
});
return resp;
};
interface UrlsResponse {
discord: string;
}