Updates api routes