Skip to content

Commit

Permalink
add csp for dicom, route fr count marks
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Apr 24, 2024
1 parent f2baa5f commit 4e78ffe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/contentSecurityPolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"cdn.datatables.net",
"maxcdn.bootstrapcdn.com"
],
"connectSrc": [
"'self'",
"*"
],
"styleSrc": [
"'self'",
"'unsafe-inline'",
Expand Down
12 changes: 12 additions & 0 deletions config/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
"handlers":[
{"function":"mongoFind", "args": ["camic", "mark"]}
]
},{
"route":"/data/Mark/count",
"method":"get",
"handlers":[
{"function":"mongoCount", "args": ["camic", "mark"]}
]
},{
"route":"/data/Mark/post",
"method":"post",
Expand Down Expand Up @@ -147,6 +153,12 @@
"handlers":[
{"function":"mongoDistinct", "args": ["camic", "mark", "provenance.analysis"]}
]
},{
"route":"/data/Mark/provenances",
"method":"get",
"handlers":[
{"function":"mongoDistinct", "args": ["camic", "mark", "provenance"]}
]
},{
"route":"/data/Mark/multi",
"method":"post",
Expand Down

0 comments on commit 4e78ffe

Please sign in to comment.