def description.paths

bend-kit-router@0.2.0.0 · router.bend:487

import bend-kit-router@0.2.0.0/router.bend as Router
import Base

487def description.paths(~A: Data, paths: List<&2, Path<A>>, +all: List<&2, Path<A>>) -> List<&2, Description>:
488  match paths:
489    case Nil{}:
490      Nil{}
491    case Path{segments, +handlers, groups, allowed} <> t:
492      List.append(&2, Description, description.handlers(~A, handlers, groups, hidden.scan(~A, all, segments, method.names(~A, handlers))), description.paths(~A, t, all))

Uses (7)

Used by (1)