Adding api routes