我使用**Hyperledger composer**创建了区块链应用程序,我先使用命令
yo hyperledger-composer:angular
在创建的文件下使用命令
npm start
以及使用了命令
composer-rest-server
这一切正常,我登录到了localhost:4200网站上,
网站可以正常登陆,但是功能模块无法使用,显示:
Error: 404 - Could not find API route. Please check your available APIs.
Error occurred while trying to proxy request /api/Cow from localhost:4200 to http://localhost:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
Unhandled error for request GET /api/Cow: Error: There is no method to handle GET /Cow
为什么?怎么解决?求教