How can I get all the routes (from all the modules and controllers available on each module) in Nestjs?
问题 Using Nestjs I'd like to get a list of all the available routes (controller methods) with http verbs, like this: API: POST /api/v1/user GET /api/v1/user PUT /api/v1/user It seems that access to express router is required, but I haven found a way to do this in Nestjs. For express there are some libraries like "express-list-routes" or "express-list-endpoints". Thanks in advance! 回答1: I just found that Nestjs app has a "getHttpServer()" method, with this I was able to access the "router stack",