Skip to content

Commit

Permalink
Merge pull request #86 from tikal/patch-1
Browse files Browse the repository at this point in the history
Update main.ts
  • Loading branch information
sebastianmusial authored Jan 8, 2025
2 parents 461868c + 5f469f3 commit aacad6b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ async function bootstrap() {
.setTitle('@boldare/openai-assistant')
.setVersion('1.2.1')
.build();
const document = SwaggerModule.createDocument(app, config);

SwaggerModule.setup('api/docs', app, document);


app.setGlobalPrefix(globalPrefix);

app.enableCors(cors);

const document = SwaggerModule.createDocument(app, config);

SwaggerModule.setup('api/docs', app, document);

const port = process.env['PORT'] || 3000;
await app.listen(port);
Expand Down

0 comments on commit aacad6b

Please sign in to comment.