Update rewriter code

Actually, there is also a missing ")".
This commit is contained in:
Justin Vencel
2015-06-23 23:41:42 -07:00
parent ef3b860903
commit 0626b853e6

View File

@ -216,7 +216,7 @@ To add rewrite rules, use `jsonServer.rewriter()`:
server.use(jsonServer.rewriter({
'/api/': '/',
'/blog/:resource/:id/show': '/:resource/:id'
})
}))
```
Alternatively, you can also mount the router on another path.