brainsmatics 1.0.40 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,4 +70,49 @@ module.exports = function expressMiddleware(router) {
70
70
  changeOrigin: true
71
71
  })
72
72
  );
73
+ // p2p接口
74
+ router.use(
75
+ "/app-api/p2p-api",
76
+ createProxyMiddleware("/app-api/p2p-api",{
77
+ target: "http://192.168.20.124:8088/api",
78
+ pathRewrite: {
79
+ '^/app-api/p2p-api': '', // 将路径中的 /api 重写为空字符串
80
+ },
81
+ changeOrigin: true
82
+ })
83
+ );
84
+ // p2p接口
85
+ router.use(
86
+ "/app-api/p2p-api",
87
+ createProxyMiddleware("/app-api/p2p-api",{
88
+ target: "http://192.168.20.124:8088/api",
89
+ pathRewrite: {
90
+ '^/app-api/p2p-api': '', // 将路径中的 /api 重写为空字符串
91
+ },
92
+ changeOrigin: true
93
+ })
94
+ );
95
+ // p2p接口
96
+ router.use(
97
+ "/app-api/p2p-api",
98
+ createProxyMiddleware("/app-api/p2p-api",{
99
+ target: "http://192.168.20.124:8088/api",
100
+ pathRewrite: {
101
+ '^/app-api/p2p-api': '', // 将路径中的 /api 重写为空字符串
102
+ },
103
+ changeOrigin: true
104
+ })
105
+ );
106
+ // p2p接口
107
+ router.use(
108
+ "/app-api/p2p-api",
109
+ createProxyMiddleware("/app-api/p2p-api",{
110
+ target: "http://192.168.50.93:8088/api",
111
+ pathRewrite: {
112
+ '^/app-api/p2p-api': '', // 将路径中的 /api 重写为空字符串
113
+ },
114
+ changeOrigin: true
115
+ })
116
+ );
117
+
73
118
  };
@@ -0,0 +1,3 @@
1
+
2
+ declare const Z: any;
3
+ export default Z;