exceptMany static method
Wraps a middleware to execute for all paths EXCEPT those in the paths list.
Implementation
static Middleware exceptMany(List<String> paths, Middleware middleware) {
return (ctx, next) async {
if (paths.contains(ctx.request.uri.path)) {
return next();
}
return middleware(ctx, next);
};
}