62 lines
1.3 KiB
JSON
62 lines
1.3 KiB
JSON
{
|
|
"plugin_id": "example.fakeroutes",
|
|
"version": "1.0.0",
|
|
"checksum": "__CHECKSUM__",
|
|
"silo_api_version": "v1",
|
|
"supported_platforms": [
|
|
{"os": "darwin", "arch": "arm64"},
|
|
{"os": "linux", "arch": "amd64"},
|
|
{"os": "linux", "arch": "arm64"}
|
|
],
|
|
"capabilities": [
|
|
{
|
|
"type": "http_routes.v1",
|
|
"id": "control",
|
|
"display_name": "Control"
|
|
}
|
|
],
|
|
"user_config_schema": [
|
|
{
|
|
"key": "theme",
|
|
"title": "Theme",
|
|
"json_schema": "{\"type\":\"string\"}",
|
|
"required": true
|
|
}
|
|
],
|
|
"http_routes": [
|
|
{
|
|
"id": "public-page",
|
|
"method": "GET",
|
|
"path": "/public",
|
|
"access": "public",
|
|
"navigable": true,
|
|
"navigation_label": "Public Page",
|
|
"navigation_kind": "user"
|
|
},
|
|
{
|
|
"id": "user-page",
|
|
"method": "GET",
|
|
"path": "/panel",
|
|
"access": "authenticated",
|
|
"navigable": true,
|
|
"navigation_label": "Panel",
|
|
"navigation_kind": "user"
|
|
},
|
|
{
|
|
"id": "admin-page",
|
|
"method": "GET",
|
|
"path": "/admin",
|
|
"access": "admin",
|
|
"navigable": true,
|
|
"navigation_label": "Admin",
|
|
"navigation_kind": "admin"
|
|
}
|
|
],
|
|
"assets": [
|
|
{
|
|
"path": "assets/admin.js",
|
|
"content_type": "application/javascript"
|
|
}
|
|
]
|
|
}
|