Controller function is now a service, it no longer belongs to the Api class. Can still access from Api.controller