Change +page.server.js to +page.server.ts for test2 route

This commit is contained in:
qowevisa 2024-11-08 19:43:56 +02:00
parent a581480ae1
commit 60c22c5350
2 changed files with 9 additions and 9 deletions

View File

@ -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()
};
}

View File

@ -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()
};
}