Re:Minimal APIs at a glance in .NET 6
by jameshart on Monday September 13, 2021 @09:42AM
(#28511363)
But if I'm not writing my controllers using inline lambda syntax, but as functions in classes in a controllers directory,, what's the value of this minimal route declaration syntax over a 'heavierweight' solution that... also puts my controller declarations in methods of classes in a controllers directory?
You can usually very easily transform lambas in function, so testing shouldn't be a problem.