mirror of
https://github.com/typicode/json-server.git
synced 2025-07-29 21:23:41 +08:00
webpack 4 + preact (#786)
This commit is contained in:
@ -7,9 +7,14 @@ const enableDestroy = require('server-destroy')
|
||||
const pause = require('connect-pause')
|
||||
const is = require('./utils/is')
|
||||
const load = require('./utils/load')
|
||||
const example = require('./example.json')
|
||||
const jsonServer = require('../server')
|
||||
|
||||
const example = {
|
||||
posts: [{ id: 1, title: 'json-server', author: 'typicode' }],
|
||||
comments: [{ id: 1, body: 'some comment', postId: 1 }],
|
||||
profile: { name: 'typicode' }
|
||||
}
|
||||
|
||||
function prettyPrint(argv, object, rules) {
|
||||
const host = argv.host === '0.0.0.0' ? 'localhost' : argv.host
|
||||
const port = argv.port
|
||||
|
Reference in New Issue
Block a user