def finish.paths
import bend-kit-router@0.2.0.0/router.bend as Routerimport Base
254def finish.paths(~A: Data, paths: List<&2, Path<A>>) -> List<&2, Path<A>>:
255 match paths:
256 case Nil{}:
257 Nil{}
258 case Path{segments, +handlers, groups, old_allow} <> t:
259 Path{segments, handlers, groups, allow(method.names(~A, handlers))} <> finish.paths(~A, t)