ojuso-map/apps/files/urls.py

12 lines
363 B
Python
Raw Normal View History

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