Added an API controller
Added constructor inject to api controller