Skip to content

Commit 7ffd381

Browse files
authored
Merge pull request #284 from abpframework/EngincanV/modular-crm-improvements
Align the ModularCrm sample with the tutorial
2 parents f46dabd + a72af02 commit 7ffd381

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)