Wow the backend has the succ but the frontend is done

This commit is contained in:
udmsoft
2018-09-26 12:44:20 -04:00
parent 26204b4b96
commit 628ebc4c26
4 changed files with 26 additions and 11 deletions

View File

@@ -23,9 +23,9 @@ app.get('/api/progress', (req, res, next) => {
}));
});
//Wow this is broken. Child prodigy workaround deployed.
//This is broken AF.
app.post('/api/progress', (req, res, next) => {
progress = JSON.parse(Object.keys(req.body)[0]).progress;
progress = req.body.progress;
res.status(200).end(JSON.stringify({
status: 'completed'
}));