move old to legacy folder

This commit is contained in:
Primakov Alexandr Alexandrovich committed 2025-01-19 21:13:33 +03:00
1 parent 8a2afc3f1b
commit 270fe51500
289 files changed

No files matched your search

@@ -0,0 +1,14 @@
const authMiddleware = (req, res, next) => {
const email = (req.headers.authorization || "").replace("Bearer ", "");
if (email) {
req.userEmail = email;
next();
} else {
return res.status(403).json({
message: "Access Denied",
});
}
};
module.exports = authMiddleware