mirror of
https://github.com/typicode/json-server.git
synced 2025-08-03 04:12:22 +08:00
@ -1,6 +1,6 @@
|
||||
# JSON Server [](https://travis-ci.org/typicode/json-server) [](http://badge.fury.io/js/json-server) [](https://gitter.im/typicode/json-server?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
Get a full fake REST API with __zero coding__ in __less than 30 seconds__ (seriously)
|
||||
Get a full fake REST API with __zero coding__/blog/:resource/:id/show in __less than 30 seconds__ (seriously)
|
||||
|
||||
Created with <3 for front-end developers who need a quick back-end for prototyping and mocking.
|
||||
|
||||
@ -215,7 +215,7 @@ To add rewrite rules, use `jsonServer.rewriter()`:
|
||||
// Add this before server.use(router)
|
||||
server.use(jsonServer.rewriter({
|
||||
'/api/': '/',
|
||||
'/blog/:resource/:id/show: '/:resource/:id'
|
||||
'/blog/:resource/:id/show': '/:resource/:id'
|
||||
})
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user