nitweb: introduce angular skeleton
[nit.git] / src / nitweb.nit
index 1df4153..93d15aa 100644 (file)
@@ -51,7 +51,7 @@ private class NitwebPhase
 
                app.use("/api", new APIRouter(model, modelbuilder, mainmodule))
                app.use("/doc/:namespace", new DocAction(model, mainmodule, modelbuilder))
-               app.use("/", new TreeAction(model, mainmodule))
+               app.use("/*", new StaticHandler(toolcontext.share_dir / "nitweb", "index.html"))
 
                app.listen(host, port.to_i)
        end