mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 14:51:08 -05:00
46 lines
1.0 KiB
Python
46 lines
1.0 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = "rides"
|
|
|
|
urlpatterns = [
|
|
# Park-specific list views
|
|
path("", views.RideListView.as_view(), name="ride_list"),
|
|
path("create/", views.RideCreateView.as_view(), name="ride_create"),
|
|
|
|
# Park-specific detail views
|
|
path(
|
|
"<slug:ride_slug>/",
|
|
views.RideDetailView.as_view(),
|
|
name="ride_detail"
|
|
),
|
|
path(
|
|
"<slug:ride_slug>/update/",
|
|
views.RideUpdateView.as_view(),
|
|
name="ride_update"
|
|
),
|
|
|
|
# Search endpoints
|
|
path(
|
|
"search/manufacturers/",
|
|
views.search_manufacturers,
|
|
name="search_manufacturers"
|
|
),
|
|
path(
|
|
"search/designers/",
|
|
views.search_designers,
|
|
name="search_designers"
|
|
),
|
|
path(
|
|
"search/models/",
|
|
views.search_ride_models,
|
|
name="search_ride_models"
|
|
),
|
|
|
|
# HTMX endpoints
|
|
path(
|
|
"coaster-fields/",
|
|
views.show_coaster_fields,
|
|
name="coaster_fields"
|
|
),
|
|
] |