feat(cefr): dual mistake ingestion, 1-tap options breakdown, and 260 curated questions
This commit is contained in:
1 parent
a00b330f74
commit
a2eb26ced5
7 files changed
+1277
-95
No files matched your search
@@ -247,6 +247,19 @@ export const api = {
|
||||
});
|
||||
if (resp.ok) return await resp.json();
|
||||
throw new Error(`Failed to reset level: ${resp.status}`);
|
||||
},
|
||||
async addWord(level, term, contextSentence = '') {
|
||||
const resp = await fetch('/api/cefr/add-word', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
level: level,
|
||||
term: term,
|
||||
context_sentence: contextSentence
|
||||
})
|
||||
});
|
||||
if (resp.ok) return await resp.json();
|
||||
throw new Error(`Failed to add word: ${resp.status}`);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user