docs: clarify routes

This commit is contained in:
typicode
2024-01-07 02:34:59 +01:00
parent 34961e6817
commit e7ca7df492

View File

@ -49,6 +49,8 @@ $ curl http://localhost:3000/posts/1
Run `json-server --help` for a list of options
## Sponsors ✨
| Sponsors |
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| <a href="https://mockend.com/" target="_blank"><img src="https://jsonplaceholder.typicode.com/mockend.svg" height="70px"></a> |
@ -59,6 +61,8 @@ Run `json-server --help` for a list of options
## Routes
Based on the example `db.json`, you'll get the following routes:
```
GET /posts
GET /posts/:id