Redirect to swagger
This commit is contained in:
		
							parent
							
								
									c565a8f799
								
							
						
					
					
						commit
						d4319bdd47
					
				| @ -1,11 +0,0 @@ | |||||||
| // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 |  | ||||||
| namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers; |  | ||||||
| 
 |  | ||||||
| public class HomeController : Controller |  | ||||||
| { |  | ||||||
|     // GET: /<controller>/ |  | ||||||
|     public IActionResult Index() |  | ||||||
|     { |  | ||||||
|         return new RedirectResult("~/swagger"); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,7 +1,4 @@ | |||||||
| global using Azure.Core; | global using Autofac; | ||||||
| global using Azure.Identity; |  | ||||||
| global using Autofac.Extensions.DependencyInjection; |  | ||||||
| global using Autofac; |  | ||||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Extensions; | global using Microsoft.eShopOnContainers.Services.Catalog.API.Extensions; | ||||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.ActionResults; | global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.ActionResults; | ||||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Exceptions; | global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Exceptions; | ||||||
| @ -12,8 +9,6 @@ global using Microsoft.AspNetCore.Http; | |||||||
| global using Microsoft.AspNetCore.Builder; | global using Microsoft.AspNetCore.Builder; | ||||||
| global using Microsoft.AspNetCore.Mvc.Filters; | global using Microsoft.AspNetCore.Mvc.Filters; | ||||||
| global using Microsoft.AspNetCore.Mvc; | global using Microsoft.AspNetCore.Mvc; | ||||||
| global using Microsoft.AspNetCore.Server.Kestrel.Core; |  | ||||||
| global using Microsoft.AspNetCore; |  | ||||||
| global using Microsoft.Extensions.Logging; | global using Microsoft.Extensions.Logging; | ||||||
| global using Microsoft.EntityFrameworkCore.Design; | global using Microsoft.EntityFrameworkCore.Design; | ||||||
| global using Microsoft.EntityFrameworkCore.Metadata.Builders; | global using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||||||
| @ -37,7 +32,6 @@ global using Microsoft.Extensions.Options; | |||||||
| global using Polly.Retry; | global using Polly.Retry; | ||||||
| global using Polly; | global using Polly; | ||||||
| global using Serilog.Context; | global using Serilog.Context; | ||||||
| global using Serilog; |  | ||||||
| global using System.Collections.Generic; | global using System.Collections.Generic; | ||||||
| global using System.Data.Common; | global using System.Data.Common; | ||||||
| global using System.Data.SqlClient; | global using System.Data.SqlClient; | ||||||
| @ -50,14 +44,5 @@ global using System.Text.RegularExpressions; | |||||||
| global using System.Threading.Tasks; | global using System.Threading.Tasks; | ||||||
| global using System; | global using System; | ||||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Filters; | global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Filters; | ||||||
| global using HealthChecks.UI.Client; |  | ||||||
| global using Microsoft.AspNetCore.Diagnostics.HealthChecks; |  | ||||||
| global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; |  | ||||||
| global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ; |  | ||||||
| global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus; |  | ||||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.IntegrationEvents.EventHandling; | global using Microsoft.eShopOnContainers.Services.Catalog.API.IntegrationEvents.EventHandling; | ||||||
| global using Microsoft.Extensions.Diagnostics.HealthChecks; |  | ||||||
| global using Microsoft.OpenApi.Models; |  | ||||||
| global using RabbitMQ.Client; |  | ||||||
| global using System.Reflection; |  | ||||||
| global using Microsoft.Extensions.FileProviders; | global using Microsoft.Extensions.FileProviders; | ||||||
| @ -30,6 +30,8 @@ app.UseFileServer(new FileServerOptions | |||||||
|     RequestPath = "/pics" |     RequestPath = "/pics" | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
|  | app.MapGet("/", () => Results.Redirect("/swagger")); | ||||||
|  | 
 | ||||||
| app.MapDefaultControllerRoute(); | app.MapDefaultControllerRoute(); | ||||||
| app.MapControllers(); | app.MapControllers(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user