News for hackers. Stuff that matters.
Re:Minimal APIs at a glance in .NET 6 by Zababa on Monday September 13, 2021 @08:06AM (#28510435)
> At least when the controllers are all classes I can unit test them.

You can usually very easily transform lambas in function, so testing shouldn't be a problem.

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?
Re:Minimal APIs at a glance in .NET 6 by jhgb on Monday September 13, 2021 @08:35AM (#28510675)
Lambas, the famous Elvish mathbread?