Changed
* `jsonServer.defaults` is now a function and can take an object.
If you're using the project as a module, you need to update your code:
js
// Before
jsonServer.defaults
// After
jsonServer.defaults()
jsonServer.defaults({ static: '/some/path'})
* Automatically ignore unknown query parameters.
bash
Before
GET /posts?author=typicode&foo=bar []
After
GET /posts?author=typicode&foo=bar [{...}, {...}]
Added
* CLI option for setting a custom static files directory.
bash
json-server --static some/path