Commit f6510c05 authored by Emanuel Kluge's avatar Emanuel Kluge Committed by Dan Zajdband

Pass parsed request-URL into the run-method (#1000)

parent 2af8a4cb
......@@ -2,7 +2,7 @@ const pathWrapper = (app, pathName, opts) => ({ raw, query }, hapiReply) =>
app.renderToHTML(raw.req, raw.res, pathName, query, opts)
.then(hapiReply)
const defaultHandlerWrapper = app => ({ raw }, hapiReply) =>
app.run(raw.req, raw.res)
const defaultHandlerWrapper = app => ({ raw, url }, hapiReply) =>
app.run(raw.req, raw.res, url)
module.exports = { pathWrapper, defaultHandlerWrapper }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment