From: Alexandre Terrasa Date: Wed, 25 May 2016 03:58:18 +0000 (-0400) Subject: nitweb: use ConsoleLog middleware X-Git-Url: http://nitlanguage.org nitweb: use ConsoleLog middleware Signed-off-by: Alexandre Terrasa --- diff --git a/src/nitweb.nit b/src/nitweb.nit index 93d15aa..c18c740 100644 --- a/src/nitweb.nit +++ b/src/nitweb.nit @@ -49,9 +49,11 @@ private class NitwebPhase var app = new App + app.use_before("/*", new RequestClock) app.use("/api", new APIRouter(model, modelbuilder, mainmodule)) app.use("/doc/:namespace", new DocAction(model, mainmodule, modelbuilder)) app.use("/*", new StaticHandler(toolcontext.share_dir / "nitweb", "index.html")) + app.use_after("/*", new ConsoleLog) app.listen(host, port.to_i) end