first draft of Spaces API

This commit is contained in:
2021-12-11 17:34:42 +01:00
parent 48ce5419b1
commit b58d739f25
19 changed files with 230 additions and 268 deletions
+7
View File
@@ -5,6 +5,8 @@ using zero.Backoffice;
using zero.Backoffice.DevServer;
using zero.Demo;
using zero.Routing;
using zero.Spaces;
using zero.Stores;
var builder = WebApplication.CreateBuilder(args);
@@ -24,6 +26,11 @@ builder.Services.Configure<ZeroDevOptions>(opts =>
opts.Enabled = false;
});
builder.Services.Configure<FlavorOptions>(opts =>
{
opts.AddSpaceList<TeamMember>("team", "Team", "Members of our team", "fth-users", "spaces.team");
});
var app = builder.Build();
// Configure the HTTP request pipeline.