generated from erangel1/generic-template
initial commit. phase 1 complete
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
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"),
|
||||
]
|
||||
Reference in New Issue
Block a user