- Initial commit... A DB, some routes, and basic authentication routines...

This commit is contained in:
mifi committed 2019-07-04 16:19:30 -04:00
commit d9a2d33913
32 files changed
+3465

No files matched your search

+11
View File
@@ -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;