Skip to content

Commit

Permalink
Merge pull request #60 from nbkhope/patch-1
Browse files Browse the repository at this point in the history
Update 13-api-json-xml-text.js
  • Loading branch information
EthanRBrown authored Jan 13, 2023
2 parents 39b790b + ac21fb8 commit 054f115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch06/13-api-json-xml-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app.get('/api/tours', (req, res) => {
'application/json': () => res.json(tours),
'application/xml': () => res.type('application/xml').send(toursXml),
'text/xml': () => res.type('text/xml').send(toursXml),
'text/plain': () => res.type('text/plain').send(toursXml),
'text/plain': () => res.type('text/plain').send(toursText),
})
})

Expand Down

0 comments on commit 054f115

Please sign in to comment.