我设置了一个router.js,服务器和客户端都可以访问它。然后,我设置了一个仅在服务器上的methods.js。我试图让api调用使用服务器的方法,但是router.js根本没有看到这个方法:TypeError: Object #<Object> has no method 'handleLoginAPI'。我该如何正确地设置它?router.js wher
不知道为什么在试图设置数组时会出现这个未定义的错误,但我猜值没有被设置。:267:24) at Request.request.post.form.__EVENTTARGET at Request.self.callback at Request.EventEmitter.emit (events.js:98:17)。(/usr/local/node_app/node_modules/request
我可以登录,但当我尝试调用我的API时,收到消息{"message":"The security token included in the request is invalid."}我的API通过此设置使用无服务器框架部署在API网关上。我启用了cors,并将授权器设置为aws_iam。20190410T171055Z
Authorization: AWS4-HMAC-SHA256 Credential=undefined/20190410/us-east-1/exec