add config routes

This commit is contained in:
2025-02-18 15:10:51 +05:30
parent fc9abbbec4
commit 5d5cee2d7e
8 changed files with 203 additions and 2 deletions

View File

@@ -21,4 +21,6 @@ export type Claim =
| "task:write"
| "task:delete"
| "notification:read"
| "notification:write";
| "notification:write"
| "config:read"
| "config:write";

View File

@@ -26,6 +26,8 @@ export const rules: Record<
"task:delete",
"notification:read",
"notification:write",
"config:read",
"config:write",
],
hiddenFields: {
orgs: ["__v"],
@@ -36,7 +38,13 @@ export const rules: Record<
},
},
builder: {
claims: ["permit:read", "file:upload", "file:download", "org:read"],
claims: [
"permit:read",
"file:upload",
"file:download",
"org:read",
"config:read",
],
hiddenFields: {
orgs: ["__v", "isClient", "name"],
permits: ["__v"],