This commit is contained in:
Team3
2026-05-31 18:04:56 +02:00
parent d1871234bb
commit d4f4f39c32
9 changed files with 349 additions and 3 deletions

View File

@@ -44,6 +44,15 @@ export function htmlUrl(id) {
return `${BASE}/guides/${id}/html`
}
export async function suggestTopics(problem) {
const res = await fetch(`${BASE}/topic-suggestions`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ problem }),
})
return res.json()
}
export async function fetchBausteine(topic) {
const res = await fetch(`${BASE}/bausteine?topic=${encodeURIComponent(topic)}`)
return res.json()