Merge pull request #11269 from linck/master

Added router.stack[] definition to get all registred routes in express Router (express 4.x)
This commit is contained in:
Andy
2016-09-22 06:17:20 -07:00
committed by GitHub

View File

@@ -97,6 +97,10 @@ declare module "express-serve-static-core" {
use: IRouterHandler<this> & IRouterMatcher<this>;
route(prefix: PathParams): IRoute;
/**
* Stack of configured routes
*/
stack: any[];
}
interface IRoute {
@@ -1048,7 +1052,7 @@ declare module "express-serve-static-core" {
routes: any;
/**
* Using to all registered routes in Express Application
* Used to get all registered routes in Express Application
*/
_router: any;
}