Skip to content

Look in to Express Validator #23

@cchauche

Description

@cchauche

module.exports = (input) => {
// if body is empty for question or answer, throw
return input;
};

If you get around to implementing sanitation and checking what parameters are being sent check out the Express Validator library on npm. It has a whole bunch of convenient methods to check types, sanitize inputs and also will automatically send back helpful error messages if there is some input tests that fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions