Browse Source

allow sendmessage

Starink 6 years ago
parent
commit
d1b27c652a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/index.js

+ 1 - 1
server/index.js

@@ -160,7 +160,7 @@ async function start () {
   app.use(jwt({ secret: 'seec-portal' }).unless({
     // 设置login、register接口,可以不需要认证访问
     path: [
-      /\/api\/user\/login/, /\/api\/user\/register/, /\/api\/interaction/, /\/api\/receiveIDToken/, /\/api\/authenticate/,
+      /\/api\/user\/login/, /\/api\/user\/register/,/\/api\/user\/sendMessage/, /\/api\/interaction/, /\/api\/receiveIDToken/, /\/api\/authenticate/,
       /^((?!\/api).)*$/   // 设置除了私有接口外的其它资源,可以不需要认证访问
     ]
   }));