|
9 | 9 | using EPiServer.ContentDefinitionsApi; |
10 | 10 | using EPiServer.ContentManagementApi; |
11 | 11 | using EPiServer.Data; |
| 12 | +using EPiServer.Framework.Hosting; |
12 | 13 | using EPiServer.Labs.ContentManager; |
13 | 14 | using EPiServer.Labs.ProjectEnhancements; |
14 | 15 | using EPiServer.Marketing.Testing.Web.Initializers; |
15 | 16 | using EPiServer.OpenIDConnect; |
16 | 17 | using EPiServer.ServiceApi; |
17 | 18 | using EPiServer.Shell.Modules; |
18 | 19 | using EPiServer.Social.Framework; |
| 20 | +using EPiServer.Web.Hosting; |
19 | 21 | using Foundation.Features.Checkout.Payments; |
20 | 22 | using Foundation.Infrastructure.Cms.ModelBinders; |
21 | 23 | using Foundation.Infrastructure.Cms.Users; |
22 | 24 | using Foundation.Infrastructure.Display; |
23 | 25 | using Geta.NotFoundHandler.Infrastructure.Configuration; |
24 | 26 | using Geta.NotFoundHandler.Infrastructure.Initialization; |
| 27 | +using Geta.NotFoundHandler.Optimizely; |
25 | 28 | using Geta.NotFoundHandler.Optimizely.Infrastructure.Configuration; |
26 | 29 | using Geta.NotFoundHandler.Optimizely.Infrastructure.Initialization; |
27 | 30 | using Geta.Optimizely.Categories.Configuration; |
@@ -209,6 +212,18 @@ public void ConfigureServices(IServiceCollection services) |
209 | 212 | }); |
210 | 213 | } |
211 | 214 | }); |
| 215 | + |
| 216 | + // Add not found handler optimizely module |
| 217 | + var moduleName = typeof(ContainerController).Assembly.GetName().Name; |
| 218 | + |
| 219 | + services.Configure<CompositeFileProviderOptions>(options => |
| 220 | + { |
| 221 | + options.BasePathFileProviders.Add(new MappingPhysicalFileProvider( |
| 222 | + $"/EPiServer/{moduleName}", |
| 223 | + string.Empty, |
| 224 | + Path.GetFullPath($"..\\..\\..\\..\\src\\{moduleName}"))); |
| 225 | + }); |
| 226 | + |
212 | 227 | // Don't camelCase Json output -- leave property names unchanged |
213 | 228 | //services.AddControllers() |
214 | 229 | // .AddJsonOptions(options => |
|
0 commit comments