Once you use new App
with either import HttpModule
or FrameworkModule
, dependency injection is automatically available for all controllers and functional routes. You can use constructor injection or function parameter injection to inject dependencies into your controller actions or functional routes.