mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 03:31:09 -05:00
major changes, including tailwind v4
This commit is contained in:
37
core/urls/map_urls.py
Normal file
37
core/urls/map_urls.py
Normal file
@@ -0,0 +1,37 @@
|
||||
"""
|
||||
URL patterns for the unified map service API.
|
||||
"""
|
||||
|
||||
from django.urls import path
|
||||
from ..views.map_views import (
|
||||
MapLocationsView,
|
||||
MapLocationDetailView,
|
||||
MapSearchView,
|
||||
MapBoundsView,
|
||||
MapStatsView,
|
||||
MapCacheView
|
||||
)
|
||||
|
||||
app_name = 'map_api'
|
||||
|
||||
urlpatterns = [
|
||||
# Main map data endpoint
|
||||
path('locations/', MapLocationsView.as_view(), name='locations'),
|
||||
|
||||
# Location detail endpoint
|
||||
path('locations/<str:location_type>/<int:location_id>/',
|
||||
MapLocationDetailView.as_view(), name='location_detail'),
|
||||
|
||||
# Search endpoint
|
||||
path('search/', MapSearchView.as_view(), name='search'),
|
||||
|
||||
# Bounds-based query endpoint
|
||||
path('bounds/', MapBoundsView.as_view(), name='bounds'),
|
||||
|
||||
# Service statistics endpoint
|
||||
path('stats/', MapStatsView.as_view(), name='stats'),
|
||||
|
||||
# Cache management endpoints
|
||||
path('cache/', MapCacheView.as_view(), name='cache'),
|
||||
path('cache/invalidate/', MapCacheView.as_view(), name='cache_invalidate'),
|
||||
]
|
||||
12
core/urls/search.py
Normal file
12
core/urls/search.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.urls import path
|
||||
from core.views.search import AdaptiveSearchView, FilterFormView
|
||||
from rides.views import RideSearchView
|
||||
|
||||
app_name = 'search'
|
||||
|
||||
urlpatterns = [
|
||||
path('parks/', AdaptiveSearchView.as_view(), name='search'),
|
||||
path('parks/filters/', FilterFormView.as_view(), name='filter_form'),
|
||||
path('rides/', RideSearchView.as_view(), name='ride_search'),
|
||||
path('rides/results/', RideSearchView.as_view(), name='ride_search_results'),
|
||||
]
|
||||
Reference in New Issue
Block a user