From 6330507e7fac494cd391cffdcbf9a7352d583f48 Mon Sep 17 00:00:00 2001 From: Snorre Jr Date: Sun, 22 Sep 2024 18:20:20 +0200 Subject: [PATCH] moved spectacular url patterns --- backend/samfundet/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/samfundet/urls.py b/backend/samfundet/urls.py index c28aa9303..cc49592f0 100644 --- a/backend/samfundet/urls.py +++ b/backend/samfundet/urls.py @@ -53,6 +53,9 @@ urlpatterns = [ path('api/', include(router.urls)), + path('schema/', SpectacularAPIView.as_view(), name='schema'), + path('schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='samfundet:schema'), name='swagger_ui'), + path('schema/redoc/', SpectacularRedocView.as_view(url_name='samfundet:schema'), name='redoc'), path('csrf/', views.CsrfView.as_view(), name='csrf'), path('login/', views.LoginView.as_view(), name='login'), path('register/', views.RegisterView.as_view(), name='register'), @@ -133,7 +136,4 @@ path('recruitment//availability/', views.RecruitmentAvailabilityView.as_view(), name='recruitment_availability'), path('feedback/', views.UserFeedbackView.as_view(), name='feedback'), path('purchase-feedback/', views.PurchaseFeedbackView.as_view(), name='purchase_feedback'), - path('schema/', SpectacularAPIView.as_view(), name='schema'), - path('schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='samfundet:schema'), name='swagger_ui'), - path('schema/redoc/', SpectacularRedocView.as_view(url_name='samfundet:schema'), name='redoc'), ]