From a921e616d240c43cdbae258618f5d53442b6ea01 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sat, 6 Apr 2024 18:53:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D1=8B=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/organizations/urls.py b/src/organizations/urls.py index 151f9bf..3609958 100644 --- a/src/organizations/urls.py +++ b/src/organizations/urls.py @@ -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//organizations/', OrganizationByCategoryListAPIView.as_view()), path('search//', OrganizationSearchListAPIView.as_view()), - path('categories/', CategoryListAPIView.as_view()) + path('categories/', CategoryListAPIView.as_view()), + path('upload/', UploadAPIView.as_view()) ] + router.urls