first draft of blueprint synchronization works

This commit is contained in:
2021-11-12 15:16:48 +01:00
parent 05a7b831bb
commit 0e043316ef
16 changed files with 629 additions and 13 deletions
+6 -1
View File
@@ -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>();
}
}