express-remove-route
express-remove-route copied to clipboard
If route not exist,it will be error
1.if a uri not exist,but use removeRoute(app,uri),it will remove last routers,so i think you should to check idx > 0,
idx = stack.indexOf(route);
stack.splice(idx, 1);