swagger-spec-express
swagger-spec-express copied to clipboard
Reusing the same router from multiple places
Given that you have a defined router, routerA.
If you have code along the lines of:
router.use('/myFirstRoute', routerA);
router.use('/mySecondRoute', routerA);
The swagger document only outputs the one route.