소스 검색

user and home page merged

May1145 1 년 전
부모
커밋
eb3c00a21f
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      fore-end/utils/request.js

+ 16 - 0
fore-end/utils/request.js

@@ -0,0 +1,16 @@
+const { http } = require('./util')
+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 })
+    }
+}
+
+module.exports = {
+    request
+}