Skip to content

Commit

Permalink
docs(Express): Corrects example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Jul 9, 2021
1 parent 8ad7dca commit b38a476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/express.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const addToPriceBody = rulr.object({

app.post('/add-to-price', (req, res) => {
try {
const headers = echoValidPriceHeaders(req.headers)
const headers = addToPriceHeaders(req.headers)
const query = addToPriceQuery(req.query)
const body = addToPriceBody(req.body)
res.status(200).send(body.originalPrice + query.priceToAdd)
Expand Down

0 comments on commit b38a476

Please sign in to comment.