Skip to content

Commit

Permalink
#161 [Backend] Full Authentication Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
fdhhhdjd committed Mar 1, 2023
1 parent 0fe0b30 commit 3c00b05
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 3c00b05

Please sign in to comment.