From 9afe4cda2153058db75c9e0f5c6275fc820f83cb Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Wed, 19 Aug 2020 15:05:23 +0300 Subject: change get to post --- src/hooks/useS3Preupload.tsx | 4 ++-- 1 file 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; -- cgit v1.2.3