Adds routes for API and client and client controller