diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-08-19 15:05:23 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-08-19 15:05:23 +0300 |
commit | 9afe4cda2153058db75c9e0f5c6275fc820f83cb (patch) | |
tree | 46a013aa820e056ac4fd92745a40fa529bf70db8 | |
parent | d380306c37fb1eefc2cd8aaccf91a6ae3de7fcb8 (diff) | |
download | which-ui-9afe4cda2153058db75c9e0f5c6275fc820f83cb.tar.gz |
change get to post
-rw-r--r-- | src/hooks/useS3Preupload.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hooks/useS3Preupload.tsx b/src/hooks/useS3Preupload.tsx index 26a6077..3834a48 100644 --- a/src/hooks/useS3Preupload.tsx +++ b/src/hooks/useS3Preupload.tsx @@ -1,7 +1,7 @@ /* eslint-disable */ import { useState, useCallback, useMemo } from 'react'; import axios from 'axios'; -import { get } from '../requests'; +import { post } from '../requests'; interface ProgressEvent { @@ -46,7 +46,7 @@ export default (): Hook => { }; setProgress(0.01); - return get('/files') + return post('/files') .then(function(response){ console.log({'resData': response.data}); debugger; |