Stop using nested routes for the api