--- a/ForgeHg/forgehg/hg_main.py
+++ b/ForgeHg/forgehg/hg_main.py
@@ -12,7 +12,7 @@
from allura.lib import helpers as h
from allura import model as M
from allura.controllers.repository import RepoRootController, RefsController, CommitsController
-from allura.controllers.repository import MergeRequestsController
+from allura.controllers.repository import MergeRequestsController, RepoRestController
from allura.lib.repository import RepositoryApp
# Local imports
@@ -33,6 +33,7 @@
def __init__(self, project, config):
super(ForgeHgApp, self).__init__(project, config)
self.root = RepoRootController()
+ self.api_root = RepoRestController()
self.root.ref = RefsController(BranchBrowser)
self.root.ci = CommitsController()
setattr(self.root, 'merge-requests', MergeRequestsController())