pronounscc/src/routes/login/+page.server.ts

17 lines
292 B
TypeScript
Raw Normal View History

2023-03-11 01:36:30 +01:00
import { apiFetch } from "$lib/api/fetch";
2023-03-09 17:08:43 +01:00
export const load = async () => {
2023-03-11 01:36:30 +01:00
const resp = await apiFetch<UrlsResponse>("/auth/urls", {
2023-03-09 17:08:43 +01:00
method: "POST",
body: {
callback_domain: process.env.ORIGIN,
},
});
return resp;
};
interface UrlsResponse {
discord: string;
}