阅读背景:

Angular HTTP API获取请求未被路由到正确的Express服务器功能

来源:互联网 

I have an Angular application that needs to be able to get construct data from a MongoDB collection. I have two HTTP API calls (“query” and “get”) made from flConstruct to request data from the server. The “query” call returns all data and appears to be working fine. When I try to retrieve data for just one of the constructs I get an error. On the Server side I have a route.js that should be routing the call to the proper function in my constructs.js script. The “get” call should be routing to the construct.getConstructById but instead appears to be routing to constructs.getConstructs. Can anyone see what I might be doing wrong?I have an Angular application that needs to be




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: