is the swagger-ui automatically included ?
walshe opened this issue · 0 comments
walshe commented
Hi, I used swagger-node to generate an express app - nice.. but now I would like to get the swagger-ui (for my apps api) also integrated in my running app e.g. at /api-docs
I tried the following, which displays the ui at root but it is pointing to some external pet store api.
any help is appreciated thanks
const pathToSwaggerUi = require('swagger-ui-dist').absolutePath()
var express = require('express')
var app = express();
app.use(express.static(pathToSwaggerUi))