Skip to content

Commit

Permalink
serve swagger [SLT-449]
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Nov 1, 2024
1 parent 47194e6 commit 35a8789
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rest-api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ app.listen(port, () => {
logger.info(`Server is listening on port ${port}`)
})

app.get('/swagger.json', (_req, res) => {
res.json(specs);

Check warning on line 60 in packages/rest-api/src/app.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `;`

Check warning on line 60 in packages/rest-api/src/app.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `;`
});

Check warning on line 61 in packages/rest-api/src/app.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `;`

Check warning on line 61 in packages/rest-api/src/app.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `;`

app.use(
'/api-docs',
(_req, res, next) => {
Expand Down

0 comments on commit 35a8789

Please sign in to comment.