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'), ]