Skip to content

v0.6.0

Compare
Choose a tag to compare
@typicode typicode released this 06 Feb 16:03
· 821 commits to main since this release

Breaking change

Server creation when using JSON Server as a module has changed.

var router = jsonServer.router(object) // Express router
var server = jsonServer.create()       // Express server

server.use(router)
server.listen(3000)

Makes it easier to customize and add middlewares.