From c33fc1edc49855e92fdcec67967b3e3a2784d0b5 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();