Add app controller for API.