mirror of
https://github.com/typicode/json-server.git
synced 2025-08-02 19:52:20 +08:00
docs: clarify routes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user