olivierlsc / swagger-express-ts

Generate and serve swagger.json
MIT License
147 stars 60 forks source link

Cannot access to api-docs/swagger endpoints #82

Closed tiennguyen1203 closed 2 years ago

tiennguyen1203 commented 2 years ago

image I'm using tsc to compile ts to js, and I cannot access the http://localhost:3000/api-docs/swagger(.json)

tiennguyen1203 commented 2 years ago

Okay sorry for the mistake, cause i put the app.use('*', async (req, res) => { res.status(404).send('Route not found')}) on top the swagger route so that throw 404 Not Found error =)