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

17 lines
292 B
TypeScript
Raw Normal View History

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