vite_deleteelectron

This commit is contained in:
2026-08-09 21:02:10 +03:00
parent 5d2fc5773c
commit 4ba9dd8012
99 changed files with 7080 additions and 48649 deletions
-17
View File
@@ -1,17 +0,0 @@
// middleware/csrf.js
const csurf = require('csurf');
const csrfProtection = csurf({ cookie: false });
const csrfMiddleware = (req, res, next) => {
if (
req.path === '/login' ||
req.path === '/moders/moder-login' ||
req.path === '/moders/csrf-token'
) {
return next();
}
return csrfProtection(req, res, next);
};
module.exports = csrfMiddleware;