move config file
This commit is contained in:
53
bsp/board/domo/ovl/usr/local/configs/restd/core.json
Normal file
53
bsp/board/domo/ovl/usr/local/configs/restd/core.json
Normal file
@@ -0,0 +1,53 @@
|
||||
// Comments
|
||||
{
|
||||
"controller": [
|
||||
{
|
||||
"model": "get",
|
||||
"endpoint": ["/v1/capabilities"],
|
||||
"ubus": {
|
||||
"path": "domo.capabilities",
|
||||
"method": "get"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "get",
|
||||
"endpoint": ["/v1/capabilities/lights", "/v1/capabilities/lights/:id"],
|
||||
"ubus": {
|
||||
"path": "domo.capabilities.lights",
|
||||
"method": "get"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "get",
|
||||
"endpoint": ["/v1/capabilities/shutters", "/v1/capabilities/shutters/:id"],
|
||||
"ubus": {
|
||||
"path": "domo.capabilities.shutters",
|
||||
"method": "get"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "get",
|
||||
"endpoint": ["/v1/capabilities/sprinklers", "/v1/capabilities/sprinklers/:id"],
|
||||
"ubus": {
|
||||
"path": "domo.capabilities.sprinklers",
|
||||
"method": "get"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "put",
|
||||
"endpoint": ["/v1/capabilities/sprinklers/:id/open"],
|
||||
"ubus": {
|
||||
"path": "domo.capabilities.sprinklers.open",
|
||||
"method": "open"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "put",
|
||||
"endpoint": ["/v1/capabilities/sprinklers/:id/close"],
|
||||
"ubus": {
|
||||
"path": "domo.capabilities.sprinklers.close",
|
||||
"method": "close"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
6
bsp/board/domo/ovl/usr/local/share/restd/index.html
Normal file
6
bsp/board/domo/ovl/usr/local/share/restd/index.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=/dashboard2/" />
|
||||
</head>
|
||||
</html>
|
||||
Reference in New Issue
Block a user