Files
shoppy/config/api/v1/urls.py
T
2024-05-13 00:26:49 +02:00

16 lines
575 B
Python

from django.urls import path, include
from drf_spectacular.views import SpectacularSwaggerView, SpectacularRedocView
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")),
path("files/", include("files.api.v1.urls")),
path("auth/", include("users.api.v1.urls")),
]