matchAPI : (api : API) -> Vect m String -> Request -> Either String (HVect (api .types))Match an API against a list of path segments.
@api The API to match.
@segs The list of path segments.
Returns a list of the parsed path parameters.
serve : Hoistable m => Router m -> Request -> HTTPResponse