summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-02-13 17:24:04 +0100
committerJules Laplace <julescarbon@gmail.com>2019-02-13 17:24:04 +0100
commit8d17c7b8491f270ae1785921b0ae0d89f8290c7b (patch)
tree81ef5c497f854fde827d6b71bf37f450c23ef494
parent706ce36948d7c59d262eae0b9870117dde5d80a8 (diff)
address action
-rw-r--r--scraper/client/actions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/scraper/client/actions.js b/scraper/client/actions.js
index ee3511bc..78c9143a 100644
--- a/scraper/client/actions.js
+++ b/scraper/client/actions.js
@@ -23,6 +23,10 @@ export const getPaperInfo = (key) => dispatch => {
api(dispatch, get, 'unknownCitations', '/reports/datasets/unknown/' + key + '.json', {})
}
+export const getAddress = sha256 => dispatch => {
+ api(dispatch, get, 'address', '/api/address/' + sha256, {})
+}
+
export const postAddress = data => dispatch => {
api(dispatch, post, 'address', '/api/address', data)
}