summaryrefslogtreecommitdiff
path: root/client/actions.js
diff options
context:
space:
mode:
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)
+}