mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 19:51:09 -05:00
Last with the old frontend
This commit is contained in:
@@ -15,10 +15,14 @@ from .views import (
|
||||
RideListCreateAPIView,
|
||||
RideDetailAPIView,
|
||||
FilterOptionsAPIView,
|
||||
CompanySearchAPIView,
|
||||
RideModelSearchAPIView,
|
||||
RideSearchSuggestionsAPIView,
|
||||
)
|
||||
from .company_views import (
|
||||
RideCompanyListCreateAPIView,
|
||||
RideCompanyDetailAPIView,
|
||||
RideCompanySearchAPIView,
|
||||
)
|
||||
from .photo_views import RidePhotoViewSet
|
||||
|
||||
# Create router for nested photo endpoints
|
||||
@@ -32,10 +36,15 @@ urlpatterns = [
|
||||
path("", RideListCreateAPIView.as_view(), name="ride-list-create"),
|
||||
# Filter options
|
||||
path("filter-options/", FilterOptionsAPIView.as_view(), name="ride-filter-options"),
|
||||
# Company endpoints - domain-specific CRUD for MANUFACTURER/DESIGNER companies
|
||||
path("companies/", RideCompanyListCreateAPIView.as_view(),
|
||||
name="ride-companies-list-create"),
|
||||
path("companies/<int:pk>/", RideCompanyDetailAPIView.as_view(),
|
||||
name="ride-company-detail"),
|
||||
# Autocomplete / suggestion endpoints
|
||||
path(
|
||||
"search/companies/",
|
||||
CompanySearchAPIView.as_view(),
|
||||
RideCompanySearchAPIView.as_view(),
|
||||
name="ride-search-companies",
|
||||
),
|
||||
path(
|
||||
|
||||
Reference in New Issue
Block a user