From 1197797c35d927af802672ced9872c0adf769fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Sun, 5 May 2024 21:28:32 +0200 Subject: [PATCH] Add API support --- kholles_web/urls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kholles_web/urls.py b/kholles_web/urls.py index 23cf0aa..2829a1e 100644 --- a/kholles_web/urls.py +++ b/kholles_web/urls.py @@ -42,8 +42,7 @@ urlpatterns = [ path('api-auth/', include('rest_framework.urls')), path("api/", include(router.urls)), path('api/schema/', SpectacularAPIView.as_view(), name='schema'), - path('api/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'), - path('api/schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'), + path('api/doc/', SpectacularSwaggerView.as_view(url_name='schema'), name='api-doc'), path("oauth2/", include('oauth2_provider.urls', namespace='oauth2_provider')), path("favicon.ico", lambda req: vstatic.serve(req, "favicon.ico")),