|
|
|
@ -49,13 +49,11 @@ if settings.XPACK_ENABLED:
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path('', views.IndexView.as_view(), name='index'),
|
|
|
|
|
path('api/v1/', include(api_v1)),
|
|
|
|
|
re_path('api/(?P<app>\w+)/(?P<version>v\d)/.*', views.redirect_format_api),
|
|
|
|
|
path('api/health/', api.HealthCheckView.as_view(), name="health"),
|
|
|
|
|
path('api/v1/health/', api.HealthCheckView.as_view(), name="health_v1"),
|
|
|
|
|
# External apps url
|
|
|
|
|
path('core/auth/captcha/', include('captcha.urls')),
|
|
|
|
|
path('core/', include(app_view_patterns)),
|
|
|
|
|
path('ui/', views.UIView.as_view()),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# 静态文件处理路由
|
|
|
|
@ -66,7 +64,9 @@ urlpatterns += [
|
|
|
|
|
]
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
|
urlpatterns += static('/luna/', document_root=(settings.DATA_DIR + '/luna'))
|
|
|
|
|
urlpatterns += static('/lina/', document_root=(settings.DATA_DIR + '/lina'))
|
|
|
|
|
urlpatterns += static('/ui/', document_root=(settings.DATA_DIR + '/lina'))
|
|
|
|
|
else:
|
|
|
|
|
urlpatterns += path('ui/', views.UIView.as_view()),
|
|
|
|
|
|
|
|
|
|
# js i18n 路由文件
|
|
|
|
|
urlpatterns += [
|
|
|
|
|