express-remove-route icon indicating copy to clipboard operation
express-remove-route copied to clipboard

If route not exist,it will be error

Open Fov6363 opened this issue 7 years ago • 0 comments

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);

Fov6363 avatar Aug 29 '16 09:08 Fov6363