Adding a new controller for the RESTful API.