This commit is contained in:
team3
2026-07-10 17:14:17 +02:00
parent 58bb600ba3
commit 917b3ac702
6 changed files with 83 additions and 13 deletions

View File

@@ -28,6 +28,9 @@ export const api = {
antwort: (artefakt_id, richtig) =>
req('/api/ueben/antwort', { method: 'POST', body: JSON.stringify({ artefakt_id, richtig }) }),
kennzahlen: (runId) => req(`/api/runs/${runId}/kennzahlen`),
transferInfo: () => req('/api/transfer'),
transfer: (topic, richtung) =>
req(`/api/topics/${topic}/transfer/${richtung}`, { method: 'POST', body: '{}' }),
}
export function wsVerbinden(onEvent) {