15 lines
550 B
Python
15 lines
550 B
Python
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
|
|
from django.urls import include, path
|
|
|
|
urlpatterns = [
|
|
path("auth/", include("apps.authentication.urls")),
|
|
path("shelves/", include("apps.shelves.urls")),
|
|
path("books/", include("apps.books.urls")),
|
|
path("authors/", include("apps.authors.urls")),
|
|
path("", include("apps.shelf_books.urls")),
|
|
|
|
path('schema/', SpectacularAPIView.as_view(), name='schema'),
|
|
path('swagger/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
|
|
|
|
]
|