Skip to content

Commit

Permalink
fix: swagger in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Mar 23, 2024
1 parent 53d6d8b commit 34919d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions backend/ypovoli/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from drf_yasg.views import get_schema_view
from rest_framework import permissions
from django.http import JsonResponse
from ypovoli.settings import DOMAIN_NAME

schema_view = get_schema_view(
openapi.Info(
Expand All @@ -33,6 +34,7 @@
permission_classes=[
permissions.AllowAny,
],
url=f"https://{DOMAIN_NAME}",
)


Expand All @@ -52,11 +54,6 @@ def swagger_json(request):
path("", include("api.urls")),
# Authentication endpoints.
path("auth/", include("authentication.urls")),
path(
"notifications/",
include("notifications.urls"),
name="notifications",
),
# Swagger documentation.
path(
"swagger/",
Expand Down

0 comments on commit 34919d0

Please sign in to comment.