mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 10:51:09 -05:00
23 lines
845 B
Python
23 lines
845 B
Python
from django.urls import path, include
|
|
from . import views
|
|
|
|
app_name = "parks"
|
|
|
|
urlpatterns = [
|
|
# Park views
|
|
path("", views.ParkListView.as_view(), name="park_list"),
|
|
path("create/", views.ParkCreateView.as_view(), name="park_create"),
|
|
path("<slug:slug>/", views.ParkDetailView.as_view(), name="park_detail"),
|
|
path("<slug:slug>/edit/", views.ParkUpdateView.as_view(), name="park_update"),
|
|
|
|
# Location search endpoints
|
|
path("search/location/", views.location_search, name="location_search"),
|
|
path("search/reverse-geocode/", views.reverse_geocode, name="reverse_geocode"),
|
|
|
|
# Area views
|
|
path("<slug:park_slug>/areas/<slug:area_slug>/", views.ParkAreaDetailView.as_view(), name="area_detail"),
|
|
|
|
# Include rides URLs
|
|
path("<slug:park_slug>/rides/", include("rides.urls", namespace="rides")),
|
|
]
|