diff --git a/MumbleApi/Program.cs b/MumbleApi/Program.cs index 83ac661..1ac8a77 100644 --- a/MumbleApi/Program.cs +++ b/MumbleApi/Program.cs @@ -45,7 +45,6 @@ #endif .AddConfiguration(builder.Configuration)); - builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); @@ -119,8 +118,8 @@ await db.Database.ExecuteSqlInterpolatedAsync( Title = "Mumble API", Description = "API for 'mumble'. A simple messaging/twitter like API for the CAS Frontend Engineering Advanced.", - Contact = new() {Name = "smartive AG", Email = "hello@smartive.ch", Url = new("https://smartive.ch"),}, - License = new() {Name = "Apache 2.0", Url = new("https://www.apache.org/licenses/LICENSE-2.0"),}, + Contact = new() { Name = "smartive AG", Email = "hello@smartive.ch", Url = new("https://smartive.ch"), }, + License = new() { Name = "Apache 2.0", Url = new("https://www.apache.org/licenses/LICENSE-2.0"), }, }); o.AddSecurityDefinition(ZitadelDefaults.AuthenticationScheme, new() @@ -149,7 +148,7 @@ await db.Database.ExecuteSqlInterpolatedAsync( Description = "Universally Unique Lexicographically Sortable Identifier", Type = "string", Example = new OpenApiString("01GEESHPQQ4NJKNZJN9AKWQW6G"), - ExternalDocs = new() {Description = "ULID Specification", Url = new("https://github.com/ulid/spec"),}, + ExternalDocs = new() { Description = "ULID Specification", Url = new("https://github.com/ulid/spec"), }, }); o.OperationFilter(); @@ -181,7 +180,7 @@ await db.Database.ExecuteSqlInterpolatedAsync( new() { ForwardedHeaders = ForwardedHeaders.XForwardedProto, - KnownNetworks = {new IPNetwork(IPAddress.Parse("0.0.0.0"), 0)}, + KnownNetworks = { new IPNetwork(IPAddress.Parse("0.0.0.0"), 0) }, }); app.UseHsts(); } @@ -202,7 +201,7 @@ await db.Database.ExecuteSqlInterpolatedAsync( o.RoutePrefix = string.Empty; o.OAuthConfigObject = new() { - Scopes = new List {"openid", "profile", "email"}, + Scopes = new List { "openid", "profile", "email" }, ClientId = config.Swagger.ClientId, UsePkceWithAuthorizationCodeGrant = true, };