问题描述
我正在与json-server
合作。我已经安装了npm install -g json-server
,并且正在使用
json-server --watch db.json
我在应用文件夹中添加了db.json
文件,数据如下:
{
"product": [
{
"userId": 1,"firstName": "Krish","lastName": "Lee","phoneNumber": "123456","emailAddress": "[email protected]"
},{
"userId": 5,"firstName": "jone","lastName": "mac","phoneNumber": "111111111","emailAddress": "[email protected]"
}
]
}
,但只有http://localhost:3000/
在工作。它显示
Congrats!
You're successfully running JSON Server
✧*。٩(ˊᗜˋ*)و✧*。
Resources
/posts 1x
/comments 1x
/profile object
To access and modify resources,you can use any HTTP method:
GET POST PUT PATCH DELETE OPTIONS
undefined
Documentation
README
To replace this page,create a ./public/index.html file.
http://localhost:3000/product
不起作用。我该如何解决这个问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)