mirror of
https://github.com/LukasKanka/api_test.git
synced 2026-11-11 22:34:36 +01:00
6 lines
180 B
JavaScript
6 lines
180 B
JavaScript
exports.checkHeader = (req, res, next) => {
|
|
if (!req.is('application/json')) {
|
|
res.status(400).send({ message: "Sorry Nick you dont have HEADer" });
|
|
}
|
|
next();
|
|
} |