mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-21 09:31:09 -05:00
remove backend
This commit is contained in:
4
apps/api/v1/maps/__init__.py
Normal file
4
apps/api/v1/maps/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
"""
|
||||
Maps API module for centralized API structure.
|
||||
Migrated from apps.core.views.map_views
|
||||
"""
|
||||
32
apps/api/v1/maps/urls.py
Normal file
32
apps/api/v1/maps/urls.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""
|
||||
URL patterns for the unified map service API.
|
||||
Migrated from apps.core.urls.map_urls to centralized API structure.
|
||||
"""
|
||||
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
# Map API endpoints - migrated from apps.core.urls.map_urls
|
||||
urlpatterns = [
|
||||
# Main map data endpoint
|
||||
path("locations/", views.MapLocationsAPIView.as_view(), name="map_locations"),
|
||||
# Location detail endpoint
|
||||
path(
|
||||
"locations/<str:location_type>/<int:location_id>/",
|
||||
views.MapLocationDetailAPIView.as_view(),
|
||||
name="map_location_detail",
|
||||
),
|
||||
# Search endpoint
|
||||
path("search/", views.MapSearchAPIView.as_view(), name="map_search"),
|
||||
# Bounds-based query endpoint
|
||||
path("bounds/", views.MapBoundsAPIView.as_view(), name="map_bounds"),
|
||||
# Service statistics endpoint
|
||||
path("stats/", views.MapStatsAPIView.as_view(), name="map_stats"),
|
||||
# Cache management endpoints
|
||||
path("cache/", views.MapCacheAPIView.as_view(), name="map_cache"),
|
||||
path(
|
||||
"cache/invalidate/",
|
||||
views.MapCacheAPIView.as_view(),
|
||||
name="map_cache_invalidate",
|
||||
),
|
||||
]
|
||||
1068
apps/api/v1/maps/views.py
Normal file
1068
apps/api/v1/maps/views.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user