nitweb: init session
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 2 Aug 2016 03:26:45 +0000 (23:26 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Sun, 14 Aug 2016 17:24:19 +0000 (13:24 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitweb.nit

index 9376172..a953fcb 100644 (file)
@@ -88,6 +88,7 @@ private class NitwebPhase
 
                var app = new App
 
+               app.use_before("/*", new SessionInit)
                app.use_before("/*", new RequestClock)
                app.use("/api", new NitwebAPIRouter(config, catalog))
                app.use("/*", new StaticHandler(toolcontext.share_dir / "nitweb", "index.html"))