Добавлена выгрузка данных

main
through-your-tears 9 months ago
parent 61583f086c
commit a921e616d2

@ -1,7 +1,7 @@
from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView, CategoryListAPIView
from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView, CategoryListAPIView, UploadAPIView
app_name = "organizations"
@ -10,5 +10,6 @@ router.register('', OrganizationViewSet, 'organizations')
urlpatterns = [
path('category/<int:id>/organizations/', OrganizationByCategoryListAPIView.as_view()),
path('search/<str:name>/', OrganizationSearchListAPIView.as_view()),
path('categories/', CategoryListAPIView.as_view())
path('categories/', CategoryListAPIView.as_view()),
path('upload/', UploadAPIView.as_view())
] + router.urls

Loading…
Cancel
Save