refactored program.cs to have more of a fluent like syntax

This commit is contained in:
StevanFreeborn
2022-06-24 14:03:43 -05:00
parent 5185323d7b
commit 4035b6e919
3 changed files with 19 additions and 14 deletions
+3 -1
View File
@@ -5,7 +5,7 @@ namespace server.Setup
{
public static class Middleware
{
public static void Setup(WebApplication app)
public static WebApplication SetupMiddleware(this WebApplication app)
{
app.UseSwagger(options =>
{
@@ -36,6 +36,8 @@ namespace server.Setup
app.MapControllers();
app.UseIpRateLimiting();
return app;
}
}
}