This commit is contained in:
Team3
2026-06-07 12:18:07 +02:00
parent b414d7f464
commit 1649a046d2
4 changed files with 59 additions and 12 deletions

View File

@@ -41,6 +41,11 @@ export async function deleteBausteine(topic) {
await fetch(`${BASE}/bausteine?topic=${encodeURIComponent(topic)}`, { method: 'DELETE' })
}
export async function fetchTopicFortschritt(topic) {
const res = await fetch(`${BASE}/topics/fortschritt?topic=${encodeURIComponent(topic)}`)
return res.json()
}
export async function fetchStats() {
const res = await fetch(`${BASE}/stats`)
return res.json()