diff --git a/src/routes/test2/+page.server.js b/src/routes/test2/+page.server.js deleted file mode 100644 index f368e5d..0000000 --- a/src/routes/test2/+page.server.js +++ /dev/null @@ -1,9 +0,0 @@ -export async function load({ fetch }) { - const response = await fetch("https://api.fin.qowevisa.click/api/authping", { - credentials: "include", - }); - - return { - message: await response.json() - }; -} diff --git a/src/routes/test2/+page.server.ts b/src/routes/test2/+page.server.ts new file mode 100644 index 0000000..207aecb --- /dev/null +++ b/src/routes/test2/+page.server.ts @@ -0,0 +1,9 @@ +import type { PageServerLoad } from "./$types"; + +export const load: PageServerLoad = async ({ fetch }) => { + const response = await fetch("https://api.fin.qowevisa.click/api/authping"); + + return { + message: await response.json() + }; +}