express-remove-route
express-remove-route copied to clipboard
Why is this a package ???
The following 3 lines removes endpoints:
function deleteUserRouter(endpoint: string) {
app.stack = app.stack.filter((app) => app.route.path !== `/${endpoint}`);
}
Why have a whole package to do this