Skip to content

Commit

Permalink
Merge pull request #70 from camicroscope/develop
Browse files Browse the repository at this point in the history
For 3.9.1
  • Loading branch information
birm authored Mar 6, 2021
2 parents afb8151 + a842344 commit c223718
Showing 1 changed file with 56 additions and 22 deletions.
78 changes: 56 additions & 22 deletions routes.json → routes.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"handlers":[
{"function":"proxyHandler", "args": ["http://ca-load:4000/"]}
]
},{
"method":"use",
"route": "/googleAuth/",
"handlers":[
{"function":"proxyHandler", "args": ["http://ca-load:4001/"]}
]
},

{
Expand Down Expand Up @@ -143,7 +149,7 @@
]
},{
"route":"/data/Mark/multi",
"method":"get",
"method":"post",
"handlers":[
{"function":"markMulti", "args": []}
]
Expand Down Expand Up @@ -308,60 +314,88 @@
},

{
"route":"/data/Configuration/find",
"route":"/data/Freeform/find",
"method":"get",
"handlers":[
{"function":"mongoFind", "args": ["camic", "configuration"]}
{"function":"mongoFind", "args": ["camic", "freeform"]}
]
},{
"route":"/data/Configuration/post",
"route":"/data/Freeform/post",
"method":"post",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoAdd", "args": ["camic", "configuration"]}
{"function":"mongoAdd", "args": ["camic", "freeform"]}
]
},{
"route":"/data/Configuration/delete",
"route":"/data/Freeform/delete",
"method":"delete",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoDelete", "args": ["camic", "configuration"]}
{"function":"mongoDelete", "args": ["camic", "freeform"]}
]
},{
"route":"/data/Configuration/update",
"route":"/data/Freeform/update",
"method":"post",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoUpdate", "args": ["camic", "configuration"]}
{"function":"mongoUpdate", "args": ["camic", "freeform"]}
]
},{
"route":"/data/Collection/find",
},

{
"route":"/data/Configuration/find",
"method":"get",
"handlers":[
{"function":"mongoFind", "args": ["camic", "collection"]}
{"function":"mongoFind", "args": ["camic", "configuration"]}
]
},{
"route":"/data/Collection/post",
"route":"/data/Configuration/post",
"method":"post",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoAdd", "args": ["camic", "collection"]}
{"function":"mongoAdd", "args": ["camic", "configuration"]}
]
},{
"route":"/data/Collection/update",
"method":"post",
"route":"/data/Configuration/delete",
"method":"delete",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoUpdate", "args": ["camic", "collection"]}
{"function":"mongoDelete", "args": ["camic", "configuration"]}
]
},{
"route":"/data/Collection/delete",
"method":"delete",
"route":"/data/Configuration/update",
"method":"post",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoDelete", "args": ["camic", "collection"]}
{"function":"mongoUpdate", "args": ["camic", "configuration"]}
]
},
},{
"route":"/data/Collection/find",
"method":"get",
"handlers":[
{"function":"mongoFind", "args": ["camic", "collection"]}
]
},{
"route":"/data/Collection/post",
"method":"post",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoAdd", "args": ["camic", "collection"]}
]
},{
"route":"/data/Collection/update",
"method":"post",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoUpdate", "args": ["camic", "collection"]}
]
},{
"route":"/data/Collection/delete",
"method":"delete",
"handlers":[
{"function":"permissionHandler", "args": [["Admin", "Editor"]]},
{"function":"mongoDelete", "args": ["camic", "collection"]}
]
},

{
"route":"/data/User/find",
Expand Down

0 comments on commit c223718

Please sign in to comment.