12 lines
354 B
Python
12 lines
354 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import SimpleRouter
|
|
from storage import views_api, views_client
|
|
|
|
router = SimpleRouter()
|
|
router.register(r"files", views_api.FileModelViewSet)
|
|
|
|
urlpatterns = [
|
|
path("api/", include(router.urls)),
|
|
path("upload/", views_client.FileUploadView.as_view(), name="client-fileupload"),
|
|
]
|