Adds new Api class to call the backend routes.