Skip to content

Commit

Permalink
Add status and data body to response
Browse files Browse the repository at this point in the history
  • Loading branch information
auggod committed Mar 25, 2022
1 parent 52f554f commit 49fde07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ app.use(async ctx => {
ctx.status = 202

ctx.body = {
status: ctx.status,
data: body,
message: 'Your message is on its way'
}
})
Expand Down

0 comments on commit 49fde07

Please sign in to comment.