Add Dependency Injection for API controller