diff --git a/src/organizations/urls.py b/src/organizations/urls.py index 3e676d0..151f9bf 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 +from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView, CategoryListAPIView app_name = "organizations" @@ -10,4 +10,5 @@ router.register('', OrganizationViewSet, 'organizations') urlpatterns = [ path('category//organizations/', OrganizationByCategoryListAPIView.as_view()), path('search//', OrganizationSearchListAPIView.as_view()), + path('categories/', CategoryListAPIView.as_view()) ] + router.urls