You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
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))
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: