-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules.json
29 lines (29 loc) · 861 Bytes
/
rules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"rules": {
".read": true,
".write": true,
"furniture": {
"$fid": {
".trigger": {
"method": "'POST'",
"target": "'http://fb-office-mover-5000.appspot.com/sync'",
//"target": "'http://localhost:8080/sync'",
"criteria": "true",
"headers": {
"Content-Type": "'application/json'"
},
"body": {
"left": "data.child('left').val()",
"top": "data.child('left').val()",
"rotation": "data.child('left').val()",
"time": "now + ''",
"name": "data.child('name').val()",
"type": "data.child('type').val()",
"uid": "$fid"
},
"errorResponse": "'/log/' + now"
}
}
}
}
}