def all.methods

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

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

261def all.methods(~A: Data, paths: List<&2, Path<A>>) -> List<&2, String>:
262  match paths:
263    case Nil{}:
264      ["OPTIONS"]
265    case Path{ss, handlers, groups, allowed} <> t:
266      List.append(&2, String, method.names(~A, handlers), all.methods(~A, t))

Uses (5)

Used by (1)