mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 06:51:08 -05:00
feat: major API restructure and Vue.js frontend integration
- Centralize API endpoints in dedicated api app with v1 versioning - Remove individual API modules from parks and rides apps - Add event tracking system with analytics functionality - Integrate Vue.js frontend with Tailwind CSS v4 and TypeScript - Add comprehensive database migrations for event tracking - Implement user authentication and social provider setup - Add API schema documentation and serializers - Configure development environment with shared scripts - Update project structure for monorepo with frontend/backend separation
This commit is contained in:
@@ -21,17 +21,8 @@ try:
|
||||
except ImportError:
|
||||
HAS_SPECTACULAR = False
|
||||
|
||||
# Import enhanced health check views
|
||||
try:
|
||||
from apps.core.views.health_views import (
|
||||
HealthCheckAPIView,
|
||||
PerformanceMetricsView,
|
||||
SimpleHealthView,
|
||||
)
|
||||
|
||||
HAS_HEALTH_VIEWS = True
|
||||
except ImportError:
|
||||
HAS_HEALTH_VIEWS = False
|
||||
# Health check views are now consolidated in the API v1
|
||||
HAS_HEALTH_VIEWS = False
|
||||
|
||||
# Import autocomplete URLs
|
||||
try:
|
||||
@@ -48,9 +39,9 @@ urlpatterns = [
|
||||
path("", HomeView.as_view(), name="home"),
|
||||
# Health Check URLs
|
||||
path("health/", include("health_check.urls")),
|
||||
# API URLs (before app URLs to avoid conflicts)
|
||||
path("api/v1/", include("apps.parks.api.urls", namespace="parks_api")),
|
||||
path("api/v1/", include("apps.rides.api.urls", namespace="rides_api")),
|
||||
# New Consolidated API v1 URLs
|
||||
path("api/v1/", include("apps.api.v1.urls", namespace="api_v1")),
|
||||
# All API endpoints are now consolidated under /api/v1/
|
||||
path(
|
||||
"api/v1/map/", include("apps.core.urls.map_urls", namespace="map_api")
|
||||
), # Map API URLs
|
||||
@@ -139,23 +130,7 @@ if HAS_SPECTACULAR:
|
||||
]
|
||||
)
|
||||
|
||||
# Add enhanced health check URLs if available
|
||||
if HAS_HEALTH_VIEWS:
|
||||
urlpatterns.extend(
|
||||
[
|
||||
path("health/api/", HealthCheckAPIView.as_view(), name="health-api"),
|
||||
path(
|
||||
"health/simple/",
|
||||
SimpleHealthView.as_view(),
|
||||
name="health-simple",
|
||||
),
|
||||
path(
|
||||
"health/metrics/",
|
||||
PerformanceMetricsView.as_view(),
|
||||
name="health-metrics",
|
||||
),
|
||||
]
|
||||
)
|
||||
# Health check API endpoints are now available at /api/v1/health/
|
||||
|
||||
# Serve static files in development
|
||||
if settings.DEBUG:
|
||||
|
||||
Reference in New Issue
Block a user