def method.names
import bend-kit-router@0.2.0.0/router.bend as Routerimport Base
237def method.names(~A: Data, xs: List<&2, Handler<A>>) -> List<&2, String>:
238 match xs:
239 case Nil{}:
240 ["OPTIONS"]
241 case Handler{+method, pattern, ss, action} <> t:
242 method.prepend(String.eq(method, "GET"), method, method.names(~A, t))