Skip to content

fix body parser#338

Merged
typicode merged 1 commit into
typicode:masterfrom
aegyed91:body-parser
Sep 13, 2016
Merged

fix body parser#338
typicode merged 1 commit into
typicode:masterfrom
aegyed91:body-parser

Conversation

@aegyed91

@aegyed91 aegyed91 commented Aug 3, 2016

Copy link
Copy Markdown
Contributor

This doesn't work.

server.use(function (req, res, next) {
  if (req.method === 'POST') {
    req.body.createdAt = Date.now()
  }
  // Continue to JSON Server router
  next()
})

The PR fixes is.

@typicode

@typicode

Copy link
Copy Markdown
Owner

Thank you 👍

@typicode typicode merged commit 26cda0d into typicode:master Sep 13, 2016
EsrefDurna pushed a commit to EsrefDurna/json-server that referenced this pull request Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants