generated from erangel1/generic-template
22 lines
762 B
Python
22 lines
762 B
Python
"""
|
|
Root URL configuration for LabGraph.
|
|
|
|
Routes:
|
|
/admin/ — Django admin interface
|
|
/api/health/ — Health check (required by docker-compose healthcheck)
|
|
/api/v1/ — DRF router (viewsets registered in Phase 2)
|
|
/api/schema/ — OpenAPI schema (drf-spectacular)
|
|
"""
|
|
|
|
from django.contrib import admin
|
|
from django.urls import include, path
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
|
|
|
|
urlpatterns = [
|
|
path("admin/", admin.site.urls),
|
|
path("api/health/", include("apps.health.urls")),
|
|
path("api/v1/", include("apps.core.urls")),
|
|
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
|
|
path("api/docs/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
|
|
]
|