swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Integrate with the Existing express Project

Open riteshnus opened this issue 8 years ago • 4 comments

When i copied the dist folder of swagger-ui in my local directory where swagger.yaml exist, i didnt able to access it. I modified the app file with "app.use('/swagger', express.static(path.join(__dirname, 'api/swagger')));" to get the static content. And when i am trying to run my server not able to locate it. Also swagger is moved to react now and there is no index.html. so which file it run specifically now.

riteshnus avatar Feb 06 '18 15:02 riteshnus

What you mean there is no index.html ? Look again: https://github.com/swagger-api/swagger-ui/tree/master/dist

heldersepu avatar Feb 06 '18 15:02 heldersepu

sorry, i have taken the dist files from "node_module/swagger-ui/dist " folder which don't have the index file.

riteshnus avatar Feb 06 '18 15:02 riteshnus

Questions like this I think you will be better off asking on StackOverflow...

heldersepu avatar Feb 06 '18 16:02 heldersepu

Sure. Thank you for help

riteshnus avatar Feb 06 '18 20:02 riteshnus