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