🩹(backend) use path for redoc url matching

This commit is contained in:
Rahulchourasiya
2026-04-15 11:05:30 +05:30
committed by aleb_the_flash
parent 5ea5460b17
commit 88b722e741
+2 -2
View File
@@ -4,7 +4,7 @@ from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path, re_path
from django.urls import include, path
from drf_spectacular.views import (
SpectacularJSONAPIView,
@@ -41,7 +41,7 @@ if settings.USE_SWAGGER or settings.DEBUG:
SpectacularSwaggerView.as_view(url_name="client-api-schema"),
name="swagger-ui-schema",
),
re_path(
path(
f"{settings.API_VERSION}/redoc/",
SpectacularRedocView.as_view(url_name="client-api-schema"),
name="redoc-schema",