fix: torna api/settings publica para a logo carregar antes do login e para chamadas sem header auth
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m5s
Details
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m5s
Details
This commit is contained in:
parent
be3e39e62d
commit
9efcf4f4b1
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue