diff options
Diffstat (limited to 'bn_django/git_browse/urls.py')
-rw-r--r-- | bn_django/git_browse/urls.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bn_django/git_browse/urls.py b/bn_django/git_browse/urls.py index 3d26e4f..91e9baa 100644 --- a/bn_django/git_browse/urls.py +++ b/bn_django/git_browse/urls.py @@ -31,7 +31,10 @@ urlpatterns = patterns('django.views.generic.list_detail', ) urlpatterns += patterns('bn_django.git_browse.views', - (r'^(?P<repo>[\w\-\_]*)/$', 'repo_view',), - (r'^(?P<repo>[\w\-\_]*)/tree/(?P<path>.?)$', 'view_tree',), - (r'^(?P<repo>[\w\-\_]*)/obj/(?P<obj_hash>.?)$', 'view_obj',), + (r'^(?P<repo>[\w\-\_]*)/$', 'repo_info',), + (r'^(?P<repo>[\w\-\_]*)/tree/$', 'view_tree',), + (r'^(?P<repo>[\w\-\_]*)/branches/$', 'view_branches',), + (r'^(?P<repo>[\w\-\_]*)/history/$', 'view_history',), + (r'^(?P<repo>[\w\-\_]*)/log/$', 'view_log',), + (r'^(?P<repo>[\w\-\_]*)/obj/(?P<hash>[0-9a-z]*)/$', 'view_obj',), ) |