Browse Source
Configure AbpEndpointRouterOptions instead PreConfigure
pull/17642/head
Enis Necipoglu
3 years ago
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680
1 changed files with
8 additions and
8 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/CmsKitPublicWebModule.cs
|
|
|
@ -41,14 +41,6 @@ public class CmsKitPublicWebModule : AbpModule |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(CmsKitPublicWebModule).Assembly); |
|
|
|
}); |
|
|
|
|
|
|
|
PreConfigure<AbpEndpointRouterOptions>(options => |
|
|
|
{ |
|
|
|
options.EndpointConfigureActions.Add(context => |
|
|
|
{ |
|
|
|
context.Endpoints.MapCmsPageRoute(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
@ -80,6 +72,14 @@ public class CmsKitPublicWebModule : AbpModule |
|
|
|
{ |
|
|
|
options.KeyPrefix = "CmsKit:"; |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpEndpointRouterOptions>(options => |
|
|
|
{ |
|
|
|
options.EndpointConfigureActions.Add(context => |
|
|
|
{ |
|
|
|
context.Endpoints.MapCmsPageRoute(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void PostConfigureServices(ServiceConfigurationContext context) |
|
|
|
|