From 43db62c84574db8bfdfc47fb2ba7e5be9db221d6 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 24 May 2016 23:58:18 -0400 Subject: [PATCH] nitweb: use ConsoleLog middleware Signed-off-by: Alexandre Terrasa --- src/nitweb.nit | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.9.5