mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-21 02:51:08 -05:00
Last with the old frontend
This commit is contained in:
@@ -13,9 +13,13 @@ from .park_views import (
|
||||
ParkListCreateAPIView,
|
||||
ParkDetailAPIView,
|
||||
FilterOptionsAPIView,
|
||||
CompanySearchAPIView,
|
||||
ParkSearchSuggestionsAPIView,
|
||||
)
|
||||
from .company_views import (
|
||||
ParkCompanyListCreateAPIView,
|
||||
ParkCompanyDetailAPIView,
|
||||
ParkCompanySearchAPIView,
|
||||
)
|
||||
from .views import ParkPhotoViewSet
|
||||
|
||||
# Create router for nested photo endpoints
|
||||
@@ -29,10 +33,13 @@ urlpatterns = [
|
||||
path("", ParkListCreateAPIView.as_view(), name="park-list-create"),
|
||||
# Filter options
|
||||
path("filter-options/", FilterOptionsAPIView.as_view(), name="park-filter-options"),
|
||||
# Company endpoints - domain-specific CRUD for OPERATOR/PROPERTY_OWNER companies
|
||||
path("companies/", ParkCompanyListCreateAPIView.as_view(), name="park-companies-list-create"),
|
||||
path("companies/<int:pk>/", ParkCompanyDetailAPIView.as_view(), name="park-company-detail"),
|
||||
# Autocomplete / suggestion endpoints
|
||||
path(
|
||||
"search/companies/",
|
||||
CompanySearchAPIView.as_view(),
|
||||
ParkCompanySearchAPIView.as_view(),
|
||||
name="park-search-companies",
|
||||
),
|
||||
path(
|
||||
|
||||
Reference in New Issue
Block a user