Add API documentation

This commit is contained in:
Alex Ling
2020-12-14 11:09:38 +00:00
parent 9dcc9665ce
commit 341b586cb3
9 changed files with 313 additions and 21 deletions

View File

@@ -219,7 +219,7 @@ const saveProgress = (idx, cb) => {
lastSavedPage = idx;
console.log('saving progress', idx);
const url = `${base_url}api/progress/${tid}/${idx}?${$.param({entry: eid})}`;
const url = `${base_url}api/progress/${tid}/${idx}?${$.param({eid: eid})}`;
$.post(url)
.then(data => {
if (data.error) throw new Error(data.error);