20 lines
		
	
	
		
			447 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			447 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace SchengenVisaApi
 | |
| {
 | |
|     /// Provides methods for configuring middleware
 | |
|     public static class PipelineRequest
 | |
|     {
 | |
|         /// Configure general middleware
 | |
|         public static WebApplication ConfigurePipelineRequest(this WebApplication app)
 | |
|         {
 | |
|             app.UseSwagger()
 | |
|                 .UseSwaggerUI();
 | |
| 
 | |
|             app.UseHttpsRedirection();
 | |
| 
 | |
|             app.MapControllers();
 | |
| 
 | |
|             return app;
 | |
|         }
 | |
|     }
 | |
| }
 |