From c4c8e6ffcf4944e1c5db39bcc3b2c1564bc078cb Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Sun, 7 Jun 2026 13:59:53 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Auto-deploy:=20Camila=20atualiza?= =?UTF-8?q?do=20em=2007/06/2026=2013:59:53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 341f441..34614e8 100644 --- a/server.js +++ b/server.js @@ -3220,9 +3220,17 @@ app.post('/api/logout', (req, res) => { res.json({ success: true }); }); -// 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 === '/login.js' || 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 === '/manifest.json' || + req.path === '/sw.js' || + req.path === '/favicon.ico' || + req.path.startsWith('/assets/') + ) { return next(); } requireAuth(req, res, next);