More work in progress, new controller for the API