ojuso-map/apps/files/urls.py
2018-05-29 23:16:51 -04:00

12 lines
363 B
Python

from django.conf.urls import url
from .views import FileUploadView, FileDeleteView, ImageFileUploadView
app_name = 'files'
urlpatterns = [
url(r'^upload/$', FileUploadView.as_view(), name='upload'),
url(r'^upload/image/$', ImageFileUploadView.as_view(), name='upload'),
url(r'^delete/(?P<pk>\d+)/$', FileDeleteView.as_view(), name='delete'),
]