asdass1 commited on
Commit
206a5fe
·
verified ·
1 Parent(s): 3b83dec

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +10 -10
index.js CHANGED
@@ -21,16 +21,16 @@ app.get('*', async (req, res) => {
21
  method: 'GET',
22
  url: 'https://api.xs.cx/upload/sg'
23
  })
24
- const upload_result = await http({
25
- method: 'POST',
26
- url: upload_info.url,
27
- headers: {
28
- 'content-crc32': hash,
29
- 'authorization': upload_info.authorization
30
- },
31
- data: file.data
32
- })
33
- res.send(upload_result.data)
34
  } catch (e) {
35
  res.send(e.toString())
36
  }
 
21
  method: 'GET',
22
  url: 'https://api.xs.cx/upload/sg'
23
  })
24
+ // const upload_result = await http({
25
+ // method: 'POST',
26
+ // url: upload_info.url,
27
+ // headers: {
28
+ // 'content-crc32': hash,
29
+ // 'authorization': upload_info.authorization
30
+ // },
31
+ // data: file.data
32
+ // })
33
+ res.send(upload_info.url)
34
  } catch (e) {
35
  res.send(e.toString())
36
  }