diff --git a/docs/express.md b/docs/express.md index 43b69a65b..5142845ce 100644 --- a/docs/express.md +++ b/docs/express.md @@ -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)