mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Update rewriter code
Actually, there is also a missing ")".
This commit is contained in:
@ -216,7 +216,7 @@ To add rewrite rules, use `jsonServer.rewriter()`:
|
|||||||
server.use(jsonServer.rewriter({
|
server.use(jsonServer.rewriter({
|
||||||
'/api/': '/',
|
'/api/': '/',
|
||||||
'/blog/:resource/:id/show': '/:resource/:id'
|
'/blog/:resource/:id/show': '/:resource/:id'
|
||||||
})
|
}))
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can also mount the router on another path.
|
Alternatively, you can also mount the router on another path.
|
||||||
|
Reference in New Issue
Block a user