Skip to content

Commit

Permalink
Fortune Cookies for random phrases
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBeneditto committed Feb 24, 2022
1 parent 9b13d78 commit 65b717a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ app.get('/api', (req, res) => {
})

app.param('id', function (req, res, next, id) {
statusId = id
statusId = parseInt(id)
next()
})

app.get('/api/:id', function (req, res) {
phrase = fortune.fortune()

res.json(
{
'code': statusId,
Expand Down

0 comments on commit 65b717a

Please sign in to comment.