diff --git a/server.js b/server.js index 36cebc4..003e63f 100644 --- a/server.js +++ b/server.js @@ -60,7 +60,7 @@ app.post('/api/logout', (req, res) => { // Proteger arquivos estáticos do diretório public exceto o login app.use((req, res, next) => { - if (req.path === '/login' || req.path === '/login.html' || req.path === '/style.css' || req.path.startsWith('/assets/')) { + if (req.path === '/login' || req.path === '/login.html' || req.path === '/login.js' || req.path === '/style.css' || req.path.startsWith('/assets/')) { return next(); } requireAuth(req, res, next);