|
|
|
@ -86,8 +86,6 @@ namespace Acme.BookStore |
|
|
|
services.Configure<VirtualFileSystemOptions>(options => |
|
|
|
{ |
|
|
|
options.FileSets.ReplaceEmbeddedByPyhsical<BookStoreDomainModule>(Path.Combine(hostingEnvironment.ContentRootPath, "..\\Acme.BookStore.Domain")); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -151,6 +149,12 @@ namespace Acme.BookStore |
|
|
|
|
|
|
|
app.UseRequestLocalization(app.ApplicationServices.GetRequiredService<IOptions<RequestLocalizationOptions>>().Value); |
|
|
|
|
|
|
|
app.UseSwagger(); |
|
|
|
app.UseSwaggerUI(options => |
|
|
|
{ |
|
|
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "BookStore API"); |
|
|
|
}); |
|
|
|
|
|
|
|
app.UseMvc(routes => |
|
|
|
{ |
|
|
|
routes.MapRoute( |
|
|
|
|