Adding routes to the api