export routeRequest too
changed the httpMethod type to a custom type for methods