Skip to content

Commit

Permalink
Add css to swagger documentation of api
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreasgdp committed May 2, 2023
1 parent daeefe3 commit 916f734
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ async function bootstrap() {
.setLicense('GPLv3', 'https://www.gnu.org/licenses/gpl-3.0.en.html')
.build();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document);
SwaggerModule.setup('api', app, document, {
customCssUrl:
'https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.15.5/swagger-ui.min.css',
});

await app.listen(port);
Logger.log(
Expand Down

2 comments on commit 916f734

@vercel
Copy link

@vercel vercel bot commented on 916f734 May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mealtime – ./

mealtime-mealtime.vercel.app
mealtime-git-master-mealtime.vercel.app
mealtime.bhelpful.net

@vercel
Copy link

@vercel vercel bot commented on 916f734 May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mealtime-api – ./apps/api

mealtime-api.vercel.app
mealtime-api-git-master-mealtime.vercel.app
mealtime-api-mealtime.vercel.app
mtapi.bhelpful.net

Please sign in to comment.