Skip to content

Provide error and data parameters in every API callback #69

@fuerbringer

Description

@fuerbringer

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}))).

Also Standard.js seems to like it that way.

Relevant files are api.js and apibackend.js.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions