summaryrefslogtreecommitdiff
path: root/client/actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-04-28 16:42:25 +0200
committerJules Laplace <julescarbon@gmail.com>2019-04-28 16:42:25 +0200
commitece8612b7077d1a71de21badb43d94b8af3ab10a (patch)
treebe495437a18faed982e81d1e41d2e896ce43f70f /client/actions.js
parent1a7ba1ffdb926f5c6faefa1308b12e490ac04927 (diff)
can hit match api
Diffstat (limited to 'client/actions.js')
-rw-r--r--client/actions.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/actions.js b/client/actions.js
index dfcfa09..3fee515 100644
--- a/client/actions.js
+++ b/client/actions.js
@@ -25,3 +25,10 @@ export const submit = (url, threshold) => dispatch => {
params.append('threshold', threshold)
api(dispatch, post, 'similar', '/api/v1/similar', params)
}
+
+export const submit = (url, threshold) => dispatch => {
+ const params = new FormData()
+ params.append('url', url)
+ params.append('threshold', threshold)
+ api(dispatch, post, 'similar', '/api/v1/match', params)
+}