Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions runtime/bk-plugin-runtime/bk_plugin_runtime/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

from django.conf import settings
from django.conf.urls import include, url
from django.urls import include, re_path
from django.contrib import admin
from rest_framework import permissions
from drf_yasg.views import get_schema_view
Expand All @@ -28,12 +28,12 @@


urlpatterns = [
url(r"^admin/", admin.site.urls),
url(r"^account/", include("blueapps.account.urls")),
url(r"^i18n/", include("django.conf.urls.i18n")),
url(r"^swagger(?P<format>\.json|\.yaml)$", schema_view.without_ui(cache_timeout=0), name="schema-json"),
url(r"^redoc/$", schema_view.with_ui("redoc", cache_timeout=0), name="schema-redoc"),
url(r"^bk_plugin/", include("bk_plugin_framework.services.bpf_service.urls")),
re_path(r"^admin/", admin.site.urls),
re_path(r"^account/", include("blueapps.account.urls")),
re_path(r"^i18n/", include("django.conf.urls.i18n")),
re_path(r"^swagger(?P<format>\.json|\.yaml)$", schema_view.without_ui(cache_timeout=0), name="schema-json"),
re_path(r"^redoc/$", schema_view.with_ui("redoc", cache_timeout=0), name="schema-redoc"),
re_path(r"^bk_plugin/", include("bk_plugin_framework.services.bpf_service.urls")),
]


Expand All @@ -42,11 +42,11 @@

urlpatterns.extend(
[
url(r"^swagger/$", schema_view.with_ui("swagger", cache_timeout=0), name="schema-swagger-ui"),
url(r"^$", debug_panel, name="debug-panel"),
re_path(r"^swagger/$", schema_view.with_ui("swagger", cache_timeout=0), name="schema-swagger-ui"),
re_path(r"^$", debug_panel, name="debug-panel"),
]
)
else:
urlpatterns.append(
url(r"^$", schema_view.with_ui("swagger", cache_timeout=0), name="schema-swagger-ui"),
re_path(r"^$", schema_view.with_ui("swagger", cache_timeout=0), name="schema-swagger-ui"),
)
Loading