Hacky redirect api routes.