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