on method
Implementation
@override
void on(
String path,
Middleware middleware, {
HTTPMethod method = HTTPMethod.ALL,
}) {
if (method == HTTPMethod.ALL) {
spanner.addMiddleware(path, middleware);
} else {
spanner.addRoute(method, path, middleware);
}
}