Skip to content

Commit

Permalink
fix: have body return as string
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed May 15, 2018
1 parent 4f8b427 commit 41e5368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ const response = (opts, handler, next) => {
}

handler.response.body = pagination[options.pagination](handler)
handler.response.body = JSON.stringify(handler.response.body)
return next()
}

Expand Down

0 comments on commit 41e5368

Please sign in to comment.