From 9efcf4f4b171ce0dc641847f658d7efd0142a797 Mon Sep 17 00:00:00 2001 From: Sidney Gomes Date: Fri, 24 Jul 2026 19:11:53 -0300 Subject: [PATCH] fix: torna api/settings publica para a logo carregar antes do login e para chamadas sem header auth --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index eb63235..59c6f37 100644 --- a/server.ts +++ b/server.ts @@ -1224,7 +1224,7 @@ app.post('/api/admin/students/:id/status', authenticateToken, requireAdmin, asyn }); // Student / Public System Settings -app.get('/api/settings', authenticateToken, async (req: AuthenticatedRequest, res: Response) => { +app.get('/api/settings', async (req: Request, res: Response) => { const settings = await prisma.systemSettings.findFirst(); res.json({ trialDurationDays: settings?.trialDurationDays || 7,