Commit 197670eb authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Merge branch 'main' into 'main'

Habilitando cors

See merge request pueblosmagicosconia!11
parents f3e40035 5661cd3a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ async function bootstrap() {
    .build();
  const document = SwaggerModule.createDocument(app, config);
  SwaggerModule.setup('api', app, document);
  app.enableCors();
  await app.listen(ServerConstants.PORT);
  console.log(`Application is running on: ${await app.getUrl()}`);
  console.log(`API documentation at: ${await app.getUrl()}/api`);