Break up parseURL middleware

This commit is contained in:
Michael Jackson
2018-05-19 08:34:36 -07:00
parent c6a6b1ffc9
commit 269b756aeb
8 changed files with 103 additions and 107 deletions

View File

@ -28,7 +28,7 @@ function createServer(publicDir, statsFile) {
if (process.env.NODE_ENV !== "test") {
app.use(
morgan(
// Modified version of the Heroku router's log format
// Modified version of Heroku's log format
// https://devcenter.heroku.com/articles/http-routing#heroku-router-log-format
'method=:method path=":url" host=:req[host] request_id=:req[x-request-id] cf_ray=:req[cf-ray] fwd=:fwd status=:status bytes=:res[content-length]'
)