Quellcode durchsuchen

user and home page merged

May1145 vor 1 Jahr
Ursprung
Commit
eb3c00a21f
1 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  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
+}