diff --git a/index.js b/index.js index 3c10453..225022d 100644 --- a/index.js +++ b/index.js @@ -358,6 +358,9 @@ class Router { res.headers['Content-Type'] = 'application/json' res.body = JSON.stringify(res.body) } + if(res.response){ + return res.response + } return new Response(res.body, { status: res.status || (res.body ? 200 : 204), headers: res.headers @@ -369,4 +372,4 @@ class Router { } } -module.exports = Router \ No newline at end of file +module.exports = Router