我是polymer和express的新手,我已经开始构建一个应用程序,我使用polymer作为前端,express作为后端,作为安全中间件,我在各种事件中调用iron ajax 示例ajax调用是
<iron-ajax id="ajax" url="https://web-ui-hello.run.aws-usw02-pr.ice.predix.io/web/ui/api/getMapData" params='{"type":"all"}' handle-as="json" content-type="application/json" method="GET" on-response="helloResponse" debounce-duration="3000">
app.get ('/web/ui/api/getMapData',function(req,res){ console.log('inside map'); });
谁能帮我一个忙吗?我一直在想为什么它不在express上?
据我所知,作为中间件的Express应用程序需要处理发送给predix的请求/响应。
网络客户端--(要求1)-->ExpressServer(请求2)-->Predix公司