Files
homepage/src/routes/(abrechnung)/abrechnung/add/+page.server.ts
T

12 lines
284 B
TypeScript

import type { PageServerLoad } from "./$types";
export async function load({ fetch }) {
const res = await fetch(`/api/payments/payees`, {method: "GET",
headers: {
credentials: "include"
}
});
const item = await res.json();
return { ...item};
};