Skip to content

Commit

Permalink
Merge pull request #163 from fdhhhdjd/developer
Browse files Browse the repository at this point in the history
#161 [Backend] Full Authentication Admin
  • Loading branch information
fdhhhdjd authored Mar 1, 2023
2 parents 40494df + 3c00b05 commit 8117317
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const HELPER = require('../utils/helper');

//! MIDDLAWARE
const { returnReasons } = require('./handle_error');

module.exports = (req, res, next) => {
const device = HELPER.getDeviceFromHeaders(req.headers);
if (device) {
Expand All @@ -13,7 +14,7 @@ module.exports = (req, res, next) => {
status: 400,
message: returnReasons('400'),
element: {
result: 'Missing Device'
result: 'Missing Device',
},
});
};

0 comments on commit 8117317

Please sign in to comment.