mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Update README.md
This commit is contained in:
@ -144,19 +144,19 @@ To make a full-text search on resources, add `q`.
|
|||||||
GET /:resource?q=
|
GET /:resource?q=
|
||||||
```
|
```
|
||||||
|
|
||||||
For routes usage information, have a look at [JSONPlaceholder](https://github.com/typicode/jsonplaceholder) code examples.
|
Returns database.
|
||||||
|
|
||||||
```
|
```
|
||||||
GET /db
|
GET /db
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns database state.
|
Returns default index file or content of ./public/index.html (useful if you need to set a custom home page).
|
||||||
|
|
||||||
```
|
```
|
||||||
GET /
|
GET /
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns default index file or content of ./public/index.html (useful if you need to set a custom home page).
|
For routes usage examples, have a look at [JSONPlaceholder](https://github.com/typicode/jsonplaceholder)'s README.
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user