forked from mirrors/pronouns.cc
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import { apiFetch } from "$lib/api/fetch";
|
|
import { PUBLIC_BASE_URL } from "$env/static/public";
|
|
import type { UrlsResponse } from "$lib/api/responses";
|
|
|
|
export const load = async () => {
|
|
const resp = await apiFetch<UrlsResponse>("/auth/urls", {
|
|
method: "POST",
|
|
body: {
|
|
callback_domain: PUBLIC_BASE_URL,
|
|
},
|
|
});
|
|
|
|
return resp;
|
|
};
|