Add core.b2b_urls to B2B URL routing

Included the core.b2b_urls module in the main B2B URL patterns to organize and modularize URL configurations. This change enhances code maintainability and improves routing logic clarity.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-05-06 04:14:04 +03:00
parent 5012727e84
commit 3f94933017

View file

@ -1,6 +1,6 @@
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView
from core.views import CustomRedocView, CustomSwaggerView, favicon_view
@ -16,6 +16,7 @@ urlpatterns = [
path(r"docs/swagger/", CustomSwaggerView.as_view(url_name="schema-b2b"), name="swagger-ui-b2b"),
path(r"docs/redoc/", CustomRedocView.as_view(url_name="schema-b2b"), name="redoc-ui-b2b"),
path(r"favicon.ico", favicon_view),
path(r"", include("core.b2b_urls")),
]
if settings.DEBUG: