I have a module/project which contains several controllers (API) for various tasks. I use this module in other applications. The problem is that the application registers all controllers even from sub-modules.
services.AddControllers()
Is there a way to control this behavior? Note I'm not talking about controller activation. Also I'm fine with automatic registration from application's module. However I would like to manually register my sub-module's controllers. By this I could register only few controllers from my sub-module needed by my application.
Thanks :-)