mirror of https://github.com/jumpserver/jumpserver
[Update] 修改url
parent
c9d192eefc
commit
90c629c837
|
@ -30,7 +30,6 @@ schema_view = get_schema_view(
|
|||
)
|
||||
api_url_pattern = re.compile(r'^/api/(?P<version>\w+)/(?P<app>\w+)/(?P<extra>.*)$')
|
||||
|
||||
|
||||
class HttpResponseTemporaryRedirect(HttpResponse):
|
||||
status_code = 307
|
||||
|
||||
|
@ -75,9 +74,8 @@ app_view_patterns = [
|
|||
path('orgs/', include('orgs.urls.views_urls', namespace='orgs')),
|
||||
]
|
||||
|
||||
XPACK_DIR = os.path.join(settings.BASE_DIR, 'xpack')
|
||||
if os.path.isdir(XPACK_DIR):
|
||||
app_view_patterns.append(path('xpack/', include('xpack.urls', namespace='xpack')))
|
||||
if settings.XPACK_ENABLED:
|
||||
app_view_patterns.append(path('xpack/', include('xpack.urls.views_urls', namespace='xpack')))
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
|
|
Loading…
Reference in New Issue