from django.conf.urls.defaults import *

urlpatterns = patterns('mediagallery.views',
    (r'^view/(?P<id>\d+)', 'view'),
    (r'^add/(?P<ctype_id>\d+)/(?P<object_id>\d+)', 'add'),
    (r'^edit/(?P<id>\d+)', 'edit'),
    (r'^edit_title/(?P<id>\d+)', 'edit_title'),
    (r'^delete_photo/(?P<id>\d+)', 'delete_photo'),
    (r'^edit_photo/(?P<id>\d+)', 'edit_photo'),
    (r'^upload/', 'upload'),
    (r'^(?P<id>\d+)/chunk', 'chunk'),
    (r'^add_youtube/(?P<id>\d+)', 'add_youtube'),
    (r'^delete_youtube/(?P<id>\d+)', 'delete_youtube'),
    (r'^add_link/(?P<id>\d+)', 'add_link'),
    (r'^delete_link/(?P<id>\d+)', 'delete_link'),
)

