feat(infra): route package (#10353)

This commit is contained in:
forehalo
2025-04-23 09:49:11 +00:00
parent e501e35d3d
commit 64997d4a0e
14 changed files with 654 additions and 18 deletions
+32
View File
@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "AFFiNE Routes Schema",
"definitions": {
"route": {
"type": "string",
"description": "route path"
},
"children": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"required": ["route", "children"],
"properties": {
"route": { "$ref": "#/definitions/route" },
"children": { "$ref": "#/definitions/children" }
}
}
]
}
}
},
"properties": {
"route": { "$ref": "#/definitions/route" },
"children": { "$ref": "#/definitions/children" }
}
}