This commit is contained in:
Team3
2026-05-29 15:49:22 +02:00
parent 5cf0822f5a
commit a826e9f6b3
5 changed files with 46 additions and 24 deletions

View File

@@ -49,11 +49,11 @@ export async function fetchBausteine(topic) {
return res.json()
}
export async function createBaustein(topic, title) {
export async function createBaustein(topic, title, instructions = '') {
const res = await fetch(`${BASE}/bausteine`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ topic, title }),
body: JSON.stringify({ topic, title, instructions }),
})
return res.json()
}