add payment route + additional starting blocks

This commit is contained in:
2023-07-24 22:57:12 +02:00
parent 4bcde97eb7
commit e25c0f9121
11 changed files with 215 additions and 2 deletions

View 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};
};