admin_to_react
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
module.exports = (req, res, next) => {
|
||||
if (req.session && req.session.isAuthenticated) {
|
||||
next();
|
||||
} else {
|
||||
res.status(401).json({ message: 'Unauthorized' });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user