fixed api routes