configuring api routes