Modifies routes to just leave api routes