From 3c00b0591791f04ed3cd8cdbf8a97be65621f0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Ti=E1=BA=BFn=20T=C3=A0i?= <63393170+fdhhhdjd@users.noreply.github.com> Date: Wed, 1 Mar 2023 15:01:44 +0700 Subject: [PATCH] #161 [Backend] Full Authentication Admin --- .../src/share/middleware/device.middleware.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend-manager-student/src/share/middleware/device.middleware.js b/backend-manager-student/src/share/middleware/device.middleware.js index 374290e..66bb78a 100644 --- a/backend-manager-student/src/share/middleware/device.middleware.js +++ b/backend-manager-student/src/share/middleware/device.middleware.js @@ -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) { @@ -13,7 +14,7 @@ module.exports = (req, res, next) => { status: 400, message: returnReasons('400'), element: { - result: 'Missing Device' + result: 'Missing Device', }, }); };