Browse Source

Use before Map

davidfowl/common-services
David Fowler 1 year ago
committed by Reuben Bond
parent
commit
f46b03cb36
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Services/Catalog/Catalog.API/Program.cs

+ 3
- 3
src/Services/Catalog/Catalog.API/Program.cs View File

@ -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<CatalogService>();
var eventBus = app.Services.GetRequiredService<IEventBus>();


Loading…
Cancel
Save