A demo for json-server and it's custom routes feature
npm install
npm start
-
Start JSON server
npm start
-
Go to http://localhost:3000/posts?page=2&limit=2, you'll get:
[ { "id": 3, "title": "json-server", "author": "typicode1" }, { "id": 4, "title": "json-server", "author": "typicode1" } ]
See routes.json for custom route configuration details.