mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
feat(infra): route package (#10353)
This commit is contained in:
@@ -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" }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user