mirror of
https://github.com/typicode/json-server.git
synced 2025-07-30 13:42:11 +08:00
v0.9.0 (#404)
* Remove automatic type conversion * Remove body-parser from default middlewares * Ignore lib * ES2015 * Use shortid * Add babel-register * Update paths to ./lib * Add .npmignore * Update bin * temp fix * Fix bin * Add message when creating default db * Use fs.watch * Fix operator existence test * Fix 0.12 tests * Update dependencies * Update * Increase timeout * Fix 0.12 support * 0.9.0-beta.1 * Fix missing example.json issue * 0.9.0-beta.2 * Update message * Update CHANGELOG.md * Update lowdb dependency * Add error message * Update README.md * Add database validation * Update * Update * Fix tests * Update
This commit is contained in:
6
src/server/body-parser.js
Normal file
6
src/server/body-parser.js
Normal file
@ -0,0 +1,6 @@
|
||||
const bodyParser = require('body-parser')
|
||||
|
||||
module.exports = [
|
||||
bodyParser.json({limit: '10mb', extended: false}),
|
||||
bodyParser.urlencoded({extended: false})
|
||||
]
|
Reference in New Issue
Block a user