codereview/browser/urls.py

13 lines
461 B
Python
Raw Normal View History

2010-11-19 05:12:29 +00:00
from django.conf.urls.defaults import *
urlpatterns = patterns('',
2010-11-22 20:12:09 +00:00
# Root log
2010-11-22 14:50:41 +00:00
(r'^(?P<repository>.*?)/log/$', 'codereview.browser.views.log'),
2010-11-22 20:12:09 +00:00
# File (Blob) view
(r'^(?P<repository>.*?)/blob/(?P<path>.*?)$', 'codereview.browser.views.blob'),
# Path log
(r'^(?P<repository>.*?)/log/(?P<path>.*?)/$', 'codereview.browser.views.log'),
# Commit view
2010-11-19 05:12:29 +00:00
(r'^(?P<repository>.*?)/view/(?P<ref>.*?)/$', 'codereview.browser.views.view'),
)