|
@@ -1,16 +1,17 @@
|
|
const { http } = require('./util')
|
|
const { http } = require('./util')
|
|
const request = {
|
|
const request = {
|
|
- get(url, option){
|
|
|
|
- return http(url, { method: 'GET', ...option })
|
|
|
|
- },
|
|
|
|
- delete(url, option){
|
|
|
|
- return http(url, option)
|
|
|
|
- },
|
|
|
|
- post(url, option){
|
|
|
|
- return http(url, { method: 'POST', ...option })
|
|
|
|
- }
|
|
|
|
|
|
+ get(url, option){
|
|
|
|
+ return http(url, { method: 'GET', ...option })
|
|
|
|
+ },
|
|
|
|
+ delete(url, option){
|
|
|
|
+ return http(url, option)
|
|
|
|
+ },
|
|
|
|
+ post(url, option){
|
|
|
|
+ return http(url, { method: 'POST', ...option })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
module.exports = {
|
|
- request
|
|
|
|
-}
|
|
|
|
|
|
+ request
|
|
|
|
+}
|
|
|
|
+
|