I'm using json-server to create a test API. I'd like to have make the API endpoint: http://localhost:3000/posts/1/comments
/posts and /posts/1 works fine but I'm not sure why /posts/1/comments doesn't. Am I missing something?
Here is the json
{
"posts": [
{
"id": 1,
"title": "Post 1",
"comments": [
{
"id": 1,
"body": "This is comment 1"
}
]
},
{
"id": 2,
"title": "Post 2",
"comments": []
}
]
}