nitweb: use config file
[nit.git] / src / web / api_graph.nit
index 06e6bf2..d58031d 100644 (file)
@@ -24,7 +24,7 @@ class APIGraphRouter
        super APIRouter
 
        init do
-               use("/inheritance/:id", new APIInheritanceGraph(model, mainmodule))
+               use("/inheritance/:id", new APIInheritanceGraph(config))
        end
 end