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