first draft of blueprint synchronization works
This commit is contained in:
@@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using zero.Core;
|
||||
using zero.Core.Api;
|
||||
using zero.Core.Blueprints;
|
||||
using zero.Core.Collections;
|
||||
using zero.Core.Entities;
|
||||
using zero.Core.Integrations;
|
||||
@@ -50,7 +51,8 @@ namespace zero.Web.Defaults
|
||||
zero.Icons.AddSet("feather", "Feather", "/assets/icons/feather.svg", "fth");
|
||||
zero.Pages.Add<PageFolder>(Constants.Pages.FolderAlias, "@page.folder.name", "@page.folder.description", "fth-folder");
|
||||
|
||||
zero.Interceptors.Add<ZeroEntityRouteInterceptor>(gravity: 1000);
|
||||
zero.Interceptors.Add<ZeroEntityRouteInterceptor>(gravity: 100);
|
||||
zero.Interceptors.Add<BlueprintInterceptor>(gravity: -1);
|
||||
}
|
||||
|
||||
|
||||
@@ -134,6 +136,9 @@ namespace zero.Web.Defaults
|
||||
|
||||
services.AddScoped<IBackofficeSearchService, BackofficeSearchService>();
|
||||
|
||||
services.AddScoped<IBlueprintService, BlueprintService>();
|
||||
services.AddScoped<BlueprintInterceptor>();
|
||||
|
||||
services.AddScoped<ZeroEntityRouteInterceptor>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user