add middleware
This commit is contained in:
6
middleware/setAdminHeaderIfAuthenticated.js
Normal file
6
middleware/setAdminHeaderIfAuthenticated.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
const setAdminHeaderIfAuthenticated = (req, res, next) => {
|
||||||
|
res.set("Vinlottis-Admin", req.isAuthenticated());
|
||||||
|
return next();
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = setAdminHeaderIfAuthenticated;
|
||||||
Reference in New Issue
Block a user