add payment route + additional starting blocks
This commit is contained in:
14
src/routes/(abrechnung)/abrechnung/+page.server.ts
Normal file
14
src/routes/(abrechnung)/abrechnung/+page.server.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { PageServerLoad } from "./$types";
|
||||
|
||||
export async function load({ fetch }) {
|
||||
const res = await fetch(`/api/payments/items/10`, {method: "POST",
|
||||
body: JSON.stringify({
|
||||
start: 0
|
||||
}),
|
||||
headers: {
|
||||
credentials: "include"
|
||||
}
|
||||
});
|
||||
const item = await res.json();
|
||||
return { ...item};
|
||||
};
|
Reference in New Issue
Block a user