🚀 Auto-deploy: Camila atualizado em 25/05/2026 19:18:12
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user