ajuste orders

This commit is contained in:
Joelson
2025-09-25 22:31:29 -03:00
parent 7b5fa2e78d
commit 893a7c5b0a
7 changed files with 432 additions and 9 deletions

View File

@@ -50,15 +50,13 @@ async function bootstrap() {
);
app.enableCors({
origin: process.env.NODE_ENV === 'production'
? ['https://www.jurunense.com', 'https://*.jurunense.com']
: ['http://localhost:9602 add '],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'],
origin: true,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
credentials: true,
allowedHeaders: ['Content-Type', 'Authorization', 'Accept'],
maxAge: 3600,
});
const config = new DocumentBuilder()
.setTitle('Portal Jurunense API')
.setDescription('Documentação da API do Portal Jurunense')