diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-28 16:42:25 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-28 16:42:25 +0200 |
| commit | ece8612b7077d1a71de21badb43d94b8af3ab10a (patch) | |
| tree | be495437a18faed982e81d1e41d2e896ce43f70f /client/actions.js | |
| parent | 1a7ba1ffdb926f5c6faefa1308b12e490ac04927 (diff) | |
can hit match api
Diffstat (limited to 'client/actions.js')
| -rw-r--r-- | client/actions.js | 7 |
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) +} |
