Commits

Anonymous committed a205d4d

routes for adding a repo

Comments (0)

Files changed (1)

pylons_app/config/routing.py

     map.connect('/error/{action}/{id}', controller = 'error')
 
     # CUSTOM ROUTES HERE
-    map.connect('hg', '/{path_info:.*}', controller = 'hg', action = "view",
+    map.connect('hg_add', '/add/{new_repo:[a-z]*}',
+                controller = 'hg', action = 'add_repo')
+    map.connect('hg', '/{path_info:.*}',
+                controller = 'hg', action = "view",
                 path_info = '/', conditions = {'method':'GET'})
 
     return map