From f46b03cb36026734fb57718a15c3d299f49ef02e Mon Sep 17 00:00:00 2001 From: David Fowler Date: Tue, 2 May 2023 22:31:40 -0700 Subject: [PATCH] Use before Map --- src/Services/Catalog/Catalog.API/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Services/Catalog/Catalog.API/Program.cs b/src/Services/Catalog/Catalog.API/Program.cs index f8fd8b4ab..38bb07a4f 100644 --- a/src/Services/Catalog/Catalog.API/Program.cs +++ b/src/Services/Catalog/Catalog.API/Program.cs @@ -24,15 +24,15 @@ var app = builder.Build(); app.UseServiceDefaults(); -app.MapDefaultControllerRoute(); -app.MapControllers(); - app.UseFileServer(new FileServerOptions { FileProvider = new PhysicalFileProvider(Path.Combine(app.Environment.ContentRootPath, "Pics")), RequestPath = "/pics" }); +app.MapDefaultControllerRoute(); +app.MapControllers(); + app.MapGrpcService(); var eventBus = app.Services.GetRequiredService();