Use before Map
This commit is contained in:
parent
d1372cba64
commit
f46b03cb36
@ -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…
x
Reference in New Issue
Block a user