nitweb: use ConsoleLog middleware
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 25 May 2016 03:58:18 +0000 (23:58 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 6 Jun 2016 13:15:05 +0000 (09:15 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitweb.nit

index 93d15aa..c18c740 100644 (file)
@@ -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