mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 20:52:08 +08:00
Fix syntax
This commit is contained in:
@ -60,7 +60,6 @@ function start (object, filename) {
|
|||||||
'Enter ' + chalk.cyan('s') + ' at any time to create a snapshot of the db'
|
'Enter ' + chalk.cyan('s') + ' at any time to create a snapshot of the db'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
process.stdin.resume()
|
process.stdin.resume()
|
||||||
process.stdin.setEncoding('utf8')
|
process.stdin.setEncoding('utf8')
|
||||||
process.stdin.on('data', function (chunk) {
|
process.stdin.on('data', function (chunk) {
|
||||||
@ -106,7 +105,6 @@ function start (object, filename) {
|
|||||||
}
|
}
|
||||||
console.log()
|
console.log()
|
||||||
|
|
||||||
|
|
||||||
var server = jsonServer.create()
|
var server = jsonServer.create()
|
||||||
server.use(jsonServer.defaults)
|
server.use(jsonServer.defaults)
|
||||||
server.use(router)
|
server.use(router)
|
||||||
|
Reference in New Issue
Block a user