Open fuerbringer opened 7 years ago
Most callbacks in the API except the word count call are missing the proper callback format callback(error, data). Should be useful to pass error messages to the front end (like this res.send(JSON.stringify({'error': error}))).
callback(error, data)
res.send(JSON.stringify({'error': error}))
Also Standard.js seems to like it that way.
Relevant files are api.js and apibackend.js.
api.js
apibackend.js
Most callbacks in the API except the word count call are missing the proper callback format
callback(error, data)
. Should be useful to pass error messages to the front end (like thisres.send(JSON.stringify({'error': error}))
).Also Standard.js seems to like it that way.
Relevant files are
api.js
andapibackend.js
.