Mercurial > kallithea
diff rhodecode/config/routing.py @ 3867:73f7149f2cc0 beta
Added show as raw into gist
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 19 May 2013 02:14:51 +0200 |
parents | 1fdec7e3aeb2 |
children | 237a8e3727a2 |
line wrap: on
line diff
--- a/rhodecode/config/routing.py Sat May 18 23:41:37 2013 +0200 +++ b/rhodecode/config/routing.py Sun May 19 02:14:51 2013 +0200 @@ -381,7 +381,7 @@ action="edit", conditions=dict(method=["GET"])) m.connect("notification", "/notification/{notification_id}", action="show", conditions=dict(method=["GET"])) - m.connect("formatted_notification", "/notifications/{notification_id}.{format}", + m.connect("formatted_notification", "/notification/{notification_id}.{format}", action="show", conditions=dict(method=["GET"])) #ADMIN GIST @@ -391,11 +391,11 @@ action="create", conditions=dict(method=["POST"])) m.connect("gists", "/gists", action="index", conditions=dict(method=["GET"])) - m.connect("formatted_gists", "/gists.{format}", + m.connect("formatted_gists", "/gists/{format}", action="index", conditions=dict(method=["GET"])) m.connect("new_gist", "/gists/new", action="new", conditions=dict(method=["GET"])) - m.connect("formatted_new_gist", "/gists/new.{format}", + m.connect("formatted_new_gist", "/gists/new/{format}", action="new", conditions=dict(method=["GET"])) m.connect("/gist/{gist_id}", action="update", conditions=dict(method=["PUT"])) @@ -404,11 +404,13 @@ m.connect("edit_gist", "/gist/{gist_id}/edit", action="edit", conditions=dict(method=["GET"])) m.connect("formatted_edit_gist", - "/gist/{gist_id}.{format}/edit", + "/gist/{gist_id}/{format}/edit", action="edit", conditions=dict(method=["GET"])) m.connect("gist", "/gist/{gist_id}", action="show", conditions=dict(method=["GET"])) - m.connect("formatted_gist", "/gists/{gist_id}.{format}", + m.connect("formatted_gist", "/gist/{gist_id}/{format}", + action="show", conditions=dict(method=["GET"])) + m.connect("formatted_gist_file", "/gist/{gist_id}/{format}/{revision}/{f_path:.*}", action="show", conditions=dict(method=["GET"])) #ADMIN MAIN PAGES