Mercurial > kallithea
comparison rhodecode/config/routing.py @ 3874:237a8e3727a2 beta
fix routing matching order
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 19 May 2013 18:21:42 +0200 |
parents | 73f7149f2cc0 |
children | 2c5ceb546234 |
comparison
equal
deleted
inserted
replaced
3873:4b0d283ecede | 3874:237a8e3727a2 |
---|---|
389 controller='admin/gists') as m: | 389 controller='admin/gists') as m: |
390 m.connect("gists", "/gists", | 390 m.connect("gists", "/gists", |
391 action="create", conditions=dict(method=["POST"])) | 391 action="create", conditions=dict(method=["POST"])) |
392 m.connect("gists", "/gists", | 392 m.connect("gists", "/gists", |
393 action="index", conditions=dict(method=["GET"])) | 393 action="index", conditions=dict(method=["GET"])) |
394 m.connect("new_gist", "/gists/new", | |
395 action="new", conditions=dict(method=["GET"])) | |
396 m.connect("formatted_new_gist", "/gists/new/{format}", | |
397 action="new", conditions=dict(method=["GET"])) | |
394 m.connect("formatted_gists", "/gists/{format}", | 398 m.connect("formatted_gists", "/gists/{format}", |
395 action="index", conditions=dict(method=["GET"])) | 399 action="index", conditions=dict(method=["GET"])) |
396 m.connect("new_gist", "/gists/new", | |
397 action="new", conditions=dict(method=["GET"])) | |
398 m.connect("formatted_new_gist", "/gists/new/{format}", | |
399 action="new", conditions=dict(method=["GET"])) | |
400 m.connect("/gist/{gist_id}", | 400 m.connect("/gist/{gist_id}", |
401 action="update", conditions=dict(method=["PUT"])) | 401 action="update", conditions=dict(method=["PUT"])) |
402 m.connect("/gist/{gist_id}", | 402 m.connect("/gist/{gist_id}", |
403 action="delete", conditions=dict(method=["DELETE"])) | 403 action="delete", conditions=dict(method=["DELETE"])) |
404 m.connect("edit_gist", "/gist/{gist_id}/edit", | 404 m.connect("edit_gist", "/gist/{gist_id}/edit", |