Convert routes to methods