changeset 3874:237a8e3727a2 beta

fix routing matching order
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 19 May 2013 18:21:42 +0200
parents 4b0d283ecede
children 5a7d52cf084d
files rhodecode/config/routing.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Sun May 19 16:14:28 2013 +0200
+++ b/rhodecode/config/routing.py	Sun May 19 18:21:42 2013 +0200
@@ -391,12 +391,12 @@
                   action="create", conditions=dict(method=["POST"]))
         m.connect("gists", "/gists",
                   action="index", conditions=dict(method=["GET"]))
-        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}",
                   action="new", conditions=dict(method=["GET"]))
+        m.connect("formatted_gists", "/gists/{format}",
+                  action="index", conditions=dict(method=["GET"]))
         m.connect("/gist/{gist_id}",
                   action="update", conditions=dict(method=["PUT"]))
         m.connect("/gist/{gist_id}",