- Initial commit... A DB, some routes, and basic authentication routines...
This commit is contained in:
commit
d9a2d33913
32 files changed
+3465
No files matched your search
@@ -0,0 +1,11 @@
|
||||
const validateJsonData = (req, res, next) => {
|
||||
if (!req.is('application/json')) {
|
||||
return next(
|
||||
new errors.InvalidContentError("Expects 'application/json'"),
|
||||
);
|
||||
}
|
||||
|
||||
next();
|
||||
};
|
||||
|
||||
module.exports = validateJsonData;
|
||||
Reference in new issue
Block a user