feat: 支持公开品牌 slug 解析

This commit is contained in:
que01 committed 2026-09-23 03:12:08 +08:00
1 parent e89b751572
commit ff5dc4e3ba
5 files changed
+13 -2

No files matched your search

+3
View File
@@ -58,6 +58,9 @@ test("health and public content are available without authentication", async ()
assert.ok(Array.isArray(runtime.capabilities));
assert.ok(runtime.theme.colors.background);
assert.ok(Array.isArray(runtime.plugins));
const bySlug = await request("/public/workspace?brandSlug=default-brand");
assert.equal(bySlug.statusCode, 200);
assert.equal(JSON.parse(bySlug.body).brand.id, brandId);
});
test("public workspace uses brand-scoped capability installations and preserves status", async () => {