def route.method
import bend-kit-router@0.2.0.0/router.bend as Routerimport Base
412def route.method(same: Bool, p: String, path: String, method: String) -> Maybe<&2, Map<&2, String>>:
413 match same:
414 case False{}:
415 None{}
416 case True{}:
417 route.pattern(pattern(p), path, method)