update
This commit is contained in:
@@ -170,6 +170,14 @@ export async function uebernehmeBlock(id, { baustein, stelle, alt, neu, provider
|
||||
return jsonOrThrow(res)
|
||||
}
|
||||
|
||||
// Lern-Fortschritt eines Bausteins auf null setzen (Score/Streak/Flags/offene Frage).
|
||||
export async function resetBausteinFortschritt(topic, baustein) {
|
||||
const res = await fetch(`${BASE}/bausteine/fortschritt?topic=${encodeURIComponent(topic)}&baustein=${encodeURIComponent(baustein)}`, {
|
||||
method: 'DELETE',
|
||||
})
|
||||
return jsonOrThrow(res)
|
||||
}
|
||||
|
||||
export async function fetchTopics() {
|
||||
const res = await fetch(`${BASE}/topics`)
|
||||
return res.json()
|
||||
|
||||
Reference in New Issue
Block a user