update
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user