Show More
@@ -19,7 +19,10 b' def make_map():' | |||||
19 | map.connect('/error/{action}/{id}', controller = 'error') |
|
19 | map.connect('/error/{action}/{id}', controller = 'error') | |
20 |
|
20 | |||
21 | # CUSTOM ROUTES HERE |
|
21 | # CUSTOM ROUTES HERE | |
22 | map.connect('hg', '/{path_info:.*}', controller = 'hg', action = "view", |
|
22 | map.connect('hg_add', '/add/{new_repo:[a-z]*}', | |
|
23 | controller = 'hg', action = 'add_repo') | |||
|
24 | map.connect('hg', '/{path_info:.*}', | |||
|
25 | controller = 'hg', action = "view", | |||
23 | path_info = '/', conditions = {'method':'GET'}) |
|
26 | path_info = '/', conditions = {'method':'GET'}) | |
24 |
|
27 | |||
25 | return map |
|
28 | return map |
General Comments 0
You need to be logged in to leave comments.
Login now