Skip to content

Commit

Permalink
fix swagger bugs not detecting apis (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: cbh778899 <[email protected]>
  • Loading branch information
cbh778899 authored Aug 2, 2024
1 parent 0e4f8db commit fdd9490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ const app = express();
app.use(cors());
app.use(bodyParser.json());

buildRoutes(app);

// swagger setup
app.use(swStats.getMiddleware({
name: "Voyager Swagger Monitor",
uriPath: '/stats',
swaggerSpec
}))

buildRoutes(app);

app.use('/', swaggerUi.serve, swaggerUi.setup(swaggerSpec, {
customSiteTitle: "Voyager APIs"
}))
Expand Down

0 comments on commit fdd9490

Please sign in to comment.