swagger-spec-express icon indicating copy to clipboard operation
swagger-spec-express copied to clipboard

Reusing the same router from multiple places

Open eXigentCoder opened this issue 9 years ago • 0 comments

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.

eXigentCoder avatar Oct 11 '16 07:10 eXigentCoder