From 8dc163fdb2c1871e505613fd8425c20e5ce339f9 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Mon, 8 Aug 2022 10:44:51 +0800 Subject: [PATCH] ip params --- code/api/config.js | 3 ++- code/web/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/api/config.js b/code/api/config.js index 14bf8d2..39922bb 100644 --- a/code/api/config.js +++ b/code/api/config.js @@ -48,7 +48,8 @@ const product = { entry: require('./app').entry, opts: { exclude: [// 不做认证的路由,也可以使用 exclude: ["*"] 跳过所有路由 - { p: '/cross_token/check', o: 'POST' } + { p: '/cross_token/check', o: 'POST' }, + { p: '/user/:userId/message', o: 'GET' } ], redis: { host: IOTA_REDIS_SERVER_HOST, diff --git a/code/web/package.json b/code/web/package.json index c79b2b2..7c43a7f 100644 --- a/code/web/package.json +++ b/code/web/package.json @@ -7,7 +7,7 @@ "test": "mocha", "start-vite": "cross-env NODE_ENV=developmentVite npm run start-params", "start": "cross-env NODE_ENV=development npm run start-params", - "start-params": "node server -p 5200 -u http://10.8.30.24:4200", + "start-params": "node server -p 5200 -u http://10.8.30.34:4200", "deploy": "export NODE_ENV=production&& npm run build && node server", "build-dev": "cross-env NODE_ENV=development&&webpack --config webpack.config.js", "build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js"