16 lines
634 B
Python
16 lines
634 B
Python
from django.urls import include, path
|
|
from drf_spectacular.views import SpectacularRedocView, SpectacularSwaggerView
|
|
|
|
from config.api.v1.views import APISchema
|
|
|
|
urlpatterns = [
|
|
path("schema/", APISchema.as_view(), name="schema"),
|
|
path(
|
|
"swagger/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"
|
|
),
|
|
path("redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
|
path("shop/", include("shop.api.v1.routers", namespace="shop_api")),
|
|
path("files/", include("files.api.v1.urls", namespace="files")),
|
|
path("auth/", include("users.api.v1.urls", namespace="auth")),
|
|
]
|