mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 03:51:08 -05:00
@@ -1 +0,0 @@
|
||||
# URLs package for core app
|
||||
@@ -1,35 +0,0 @@
|
||||
"""
|
||||
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"),
|
||||
]
|
||||
@@ -1,39 +0,0 @@
|
||||
"""
|
||||
URL patterns for map views.
|
||||
Includes both HTML views and HTMX endpoints.
|
||||
"""
|
||||
|
||||
from django.urls import path
|
||||
from ..views.maps import (
|
||||
UniversalMapView,
|
||||
ParkMapView,
|
||||
NearbyLocationsView,
|
||||
LocationFilterView,
|
||||
LocationSearchView,
|
||||
MapBoundsUpdateView,
|
||||
LocationDetailModalView,
|
||||
LocationListView,
|
||||
)
|
||||
|
||||
app_name = "maps"
|
||||
|
||||
urlpatterns = [
|
||||
# Main map views
|
||||
path("", UniversalMapView.as_view(), name="universal_map"),
|
||||
path("parks/", ParkMapView.as_view(), name="park_map"),
|
||||
path("nearby/", NearbyLocationsView.as_view(), name="nearby_locations"),
|
||||
path("list/", LocationListView.as_view(), name="location_list"),
|
||||
# HTMX endpoints for dynamic updates
|
||||
path("htmx/filter/", LocationFilterView.as_view(), name="htmx_filter"),
|
||||
path("htmx/search/", LocationSearchView.as_view(), name="htmx_search"),
|
||||
path(
|
||||
"htmx/bounds/",
|
||||
MapBoundsUpdateView.as_view(),
|
||||
name="htmx_bounds_update",
|
||||
),
|
||||
path(
|
||||
"htmx/location/<str:location_type>/<int:location_id>/",
|
||||
LocationDetailModalView.as_view(),
|
||||
name="htmx_location_detail",
|
||||
),
|
||||
]
|
||||
@@ -1,24 +0,0 @@
|
||||
from django.urls import path
|
||||
from apps.core.views.search import (
|
||||
AdaptiveSearchView,
|
||||
FilterFormView,
|
||||
LocationSearchView,
|
||||
LocationSuggestionsView,
|
||||
)
|
||||
from apps.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"),
|
||||
# Location-aware search
|
||||
path("location/", LocationSearchView.as_view(), name="location_search"),
|
||||
path(
|
||||
"location/suggestions/",
|
||||
LocationSuggestionsView.as_view(),
|
||||
name="location_suggestions",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user