Change +page.server.js to +page.server.ts for test2 route
This commit is contained in:
parent
a581480ae1
commit
60c22c5350
|
@ -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()
|
||||
};
|
||||
}
|
9
src/routes/test2/+page.server.ts
Normal file
9
src/routes/test2/+page.server.ts
Normal 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()
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user