在后端api未测试的前提下完成种子上传
Change-Id: Ie7387ec1db864125afef0cbc08e4f57fb8a91b19
diff --git a/vue.config.js b/vue.config.js
index a0ee328..7d53894 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -10,6 +10,27 @@
changeOrigin: true,
ws: true,
logLevel: 'debug'
+ },
+ '/category': {
+ target: 'http://localhost:8081',
+ changeOrigin: true,
+ pathRewrite: {
+ '^/category': '/api/category'
+ }
+ },
+ '/torrent': {
+ target: 'http://localhost:8081',
+ changeOrigin: true,
+ pathRewrite: {
+ '^/torrent': '/api/torrent'
+ }
+ },
+ '/auth': {
+ target: 'http://localhost:8081',
+ changeOrigin: true,
+ pathRewrite: {
+ '^/auth': '/api/auth'
+ }
}
}
}