Skip to content

Commit

Permalink
serve swagger [SLT-449] (#3359)
Browse files Browse the repository at this point in the history
* serve swagger [SLT-449]

* fix lint issue

---------

Co-authored-by: Trajan0x <[email protected]>
  • Loading branch information
trajan0x and trajan0x authored Nov 1, 2024
1 parent 47194e6 commit 6df489d
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)
})

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

0 comments on commit 6df489d

Please sign in to comment.