Skip to content

Commit a72af02

Browse files
committed
Align the modularcrm sample with the tutorial
1 parent f46dabd commit a72af02

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ModularCrm/ModularCrm/ModularCrmModule.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,15 @@ private void ConfigureAutoApiControllers()
301301
Configure<AbpAspNetCoreMvcOptions>(options =>
302302
{
303303
options.ConventionalControllers.Create(typeof(ModularCrmModule).Assembly);
304-
options.ConventionalControllers.Create(typeof(ProductsApplicationModule).Assembly);
304+
options.ConventionalControllers.Create(typeof(ProductsApplicationModule).Assembly, settings =>
305+
{
306+
settings.RootPath = "products";
307+
});
305308

306-
options.ConventionalControllers.Create(typeof(OrderingModule).Assembly);
309+
options.ConventionalControllers.Create(typeof(OrderingModule).Assembly, settings =>
310+
{
311+
settings.RootPath = "orders";
312+
});
307313
});
308314
}
309315

0 commit comments

Comments
 (0)