comparison rhodecode/config/routing.py @ 3882:2c5ceb546234 beta

renamed gists routing to proper plural names
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 20 May 2013 21:40:00 +0200
parents 237a8e3727a2
children 5293d4bbb1ea
comparison
equal deleted inserted replaced
3881:6b21a93da5bc 3882:2c5ceb546234
368 action="index", conditions=dict(method=["GET"])) 368 action="index", conditions=dict(method=["GET"]))
369 m.connect("new_notification", "/notifications/new", 369 m.connect("new_notification", "/notifications/new",
370 action="new", conditions=dict(method=["GET"])) 370 action="new", conditions=dict(method=["GET"]))
371 m.connect("formatted_new_notification", "/notifications/new.{format}", 371 m.connect("formatted_new_notification", "/notifications/new.{format}",
372 action="new", conditions=dict(method=["GET"])) 372 action="new", conditions=dict(method=["GET"]))
373 m.connect("/notification/{notification_id}", 373 m.connect("/notifications/{notification_id}",
374 action="update", conditions=dict(method=["PUT"])) 374 action="update", conditions=dict(method=["PUT"]))
375 m.connect("/notification/{notification_id}", 375 m.connect("/notifications/{notification_id}",
376 action="delete", conditions=dict(method=["DELETE"])) 376 action="delete", conditions=dict(method=["DELETE"]))
377 m.connect("edit_notification", "/notification/{notification_id}/edit", 377 m.connect("edit_notification", "/notifications/{notification_id}/edit",
378 action="edit", conditions=dict(method=["GET"])) 378 action="edit", conditions=dict(method=["GET"]))
379 m.connect("formatted_edit_notification", 379 m.connect("formatted_edit_notification",
380 "/notification/{notification_id}.{format}/edit", 380 "/notifications/{notification_id}.{format}/edit",
381 action="edit", conditions=dict(method=["GET"])) 381 action="edit", conditions=dict(method=["GET"]))
382 m.connect("notification", "/notification/{notification_id}", 382 m.connect("notification", "/notifications/{notification_id}",
383 action="show", conditions=dict(method=["GET"])) 383 action="show", conditions=dict(method=["GET"]))
384 m.connect("formatted_notification", "/notification/{notification_id}.{format}", 384 m.connect("formatted_notification", "/notifications/{notification_id}.{format}",
385 action="show", conditions=dict(method=["GET"])) 385 action="show", conditions=dict(method=["GET"]))
386 386
387 #ADMIN GIST 387 #ADMIN GIST
388 with rmap.submapper(path_prefix=ADMIN_PREFIX, 388 with rmap.submapper(path_prefix=ADMIN_PREFIX,
389 controller='admin/gists') as m: 389 controller='admin/gists') as m:
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", 394 m.connect("new_gist", "/gists/new",
395 action="new", conditions=dict(method=["GET"])) 395 action="new", conditions=dict(method=["GET"]))
396 m.connect("formatted_new_gist", "/gists/new/{format}", 396 m.connect("formatted_new_gist", "/gists/new.{format}",
397 action="new", conditions=dict(method=["GET"])) 397 action="new", conditions=dict(method=["GET"]))
398 m.connect("formatted_gists", "/gists/{format}", 398 m.connect("formatted_gists", "/gists.{format}",
399 action="index", conditions=dict(method=["GET"])) 399 action="index", conditions=dict(method=["GET"]))
400 m.connect("/gist/{gist_id}", 400 m.connect("/gists/{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("/gists/{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", "/gists/{gist_id}/edit",
405 action="edit", conditions=dict(method=["GET"])) 405 action="edit", conditions=dict(method=["GET"]))
406 m.connect("formatted_edit_gist", 406 m.connect("formatted_edit_gist",
407 "/gist/{gist_id}/{format}/edit", 407 "/gists/{gist_id}/{format}/edit",
408 action="edit", conditions=dict(method=["GET"])) 408 action="edit", conditions=dict(method=["GET"]))
409 m.connect("gist", "/gist/{gist_id}", 409 m.connect("gist", "/gists/{gist_id}",
410 action="show", conditions=dict(method=["GET"])) 410 action="show", conditions=dict(method=["GET"]))
411 m.connect("formatted_gist", "/gist/{gist_id}/{format}", 411 m.connect("formatted_gist", "/gists/{gist_id}/{format}",
412 action="show", conditions=dict(method=["GET"])) 412 action="show", conditions=dict(method=["GET"]))
413 m.connect("formatted_gist_file", "/gist/{gist_id}/{format}/{revision}/{f_path:.*}", 413 m.connect("formatted_gist_file", "/gists/{gist_id}/{format}/{revision}/{f_path:.*}",
414 action="show", conditions=dict(method=["GET"])) 414 action="show", conditions=dict(method=["GET"]))
415 415
416 #ADMIN MAIN PAGES 416 #ADMIN MAIN PAGES
417 with rmap.submapper(path_prefix=ADMIN_PREFIX, 417 with rmap.submapper(path_prefix=ADMIN_PREFIX,
418 controller='admin/admin') as m: 418 controller='admin/admin') as m: