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