brainsmatics 1.0.41 → 1.0.43

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,16 @@ 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.50.93:8088/api",
78
+ pathRewrite: {
79
+ '^/app-api/p2p-api': '', // 将路径中的 /api 重写为空字符串
80
+ },
81
+ changeOrigin: true
82
+ })
83
+ );
84
+
73
85
  };
@@ -0,0 +1,3 @@
1
+
2
+ declare const Z: any;
3
+ export default Z;