Skip to content

Commit 0626b85

Browse files
committed
Update rewriter code
Actually, there is also a missing ")".
1 parent ef3b860 commit 0626b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ To add rewrite rules, use `jsonServer.rewriter()`:
216216
server.use(jsonServer.rewriter({
217217
'/api/': '/',
218218
'/blog/:resource/:id/show': '/:resource/:id'
219-
})
219+
}))
220220
```
221221

222222
Alternatively, you can also mount the router on another path.

0 commit comments

Comments
 (0)