Add minimal APIs to the Startup class

In the previous article of this series we discussed integrating ASP.NET Core Identity with JWT and minimal APIs. Minimal APIs are introduced as a part of ASP.NET Core 6.0. All the new project templates in Visual Studio 2022 use the new way of application startup. However, you might be migrating an older project to ASP.NET Core 6.0 and you may want to continue using the Startup class based application initialization. What if you want to create minimal APIs in such cases? Can they be defined in the Startup class? That's what we are going to discuss in this part of this multipart article series.

http://www.binaryintellect.net/articles/6e3d0699-fde9-4c2c-9c84-a4bd49d95a98.aspx