Skip to content

Remo Platform - better req.body handling on incoming requests #2

@jillytot

Description

@jillytot

from ged:

incase someone doesn't send a proper body you should put if (!req.body) return res.json({error: 'no'})
or something at the top of all your routes that use req.body
res.status(400).json({error: 'no body'})

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