Chande DI order
This commit is contained in:
		| @@ -66,19 +66,22 @@ builder.Host.ConfigureServices((context, services) => | ||||
|  | ||||
| var app = builder.Build(); | ||||
|  | ||||
| app.UseLogging(builder.Configuration); | ||||
| app.UseSwaggerUI(builder.Configuration, authSettings); | ||||
| app.MapControllers(); | ||||
| app.UseCors(); | ||||
| app.ConfigureSwagger(builder.Configuration); | ||||
|  | ||||
| app.UseRouting(); | ||||
| app.UseCors(); | ||||
| app.UseHttpsRedirection(); | ||||
| app.UseStaticFiles(); | ||||
| app.UseRouting(); | ||||
| app.UseResponseCompression(); | ||||
| app.UseOutputCache(); | ||||
| app.UseResponseCaching(); | ||||
|  | ||||
| app.UseAuthentication(); | ||||
| app.UseAuthorization(); | ||||
| app.UseLogging(builder.Configuration); | ||||
|  | ||||
| app.MapControllers(); | ||||
| app.MapHealthChecks("/health"); | ||||
|  | ||||
| app.Run(); | ||||
		Reference in New Issue
	
	Block a user