def get_urlpatterns(): if settings.APP_CONF.get('disable_sx_management'): return [] else: return [ url(r'^$', views.ClusterManagementView), url(r'^mark-nodes-as-faulty/$', views.MarkNodesAsFaultyView), url(r'^replace-faulty-nodes/$', views.ReplaceFaultyNodesView), url(r'^modify-cluster-configuration/$', views.ModifyClusterConfigurationView), ]
# Copyright (C) 2015-2016 Skylable Ltd. <*****@*****.**> # License: GPLv2 or later, see LICENSE for more details. ''' ''' from sxconsole.utils.urls import cbv_url_helper as url from . import views urlpatterns = [ url(r'^add/$', views.CreateVolumeView), url(r'^(?P<name>[^/]+)/acl$', views.VolumeAclView), url(r'^(?P<name>[^/]+)/edit/$', views.UpdateVolumeView), url(r'^(?P<name>[^/]+)/delete/$', views.DeleteVolumeView), url(r'^(?P<name>[^/]+)/make_public/$', views.MakeVolumePublic), url(r'^(?P<name>[^/]+)/make_private/$', views.MakeVolumePrivate), ]
# Copyright (C) 2015-2016 Skylable Ltd. <*****@*****.**> # License: GPLv2 or later, see LICENSE for more details. ''' ''' from django.conf.urls import include from sxconsole.utils.urls import cbv_url_helper as url from . import views urlpatterns = [ url(r'^$', views.HomeRelay), url(r'^stats/$', views.StatsView), url(r'^stats/get/$', views.GetStatsView), url(r'^tasks/$', views.TaskListView), url(r'^tasks/(?P<uuid>[\w\d-]+)/$', views.TaskStatusView), url(r'^api/', include('sxconsole.api.urls')), url(r'^admin/', include('sxconsole.accounts.urls')), url(r'^user/', include('sxconsole.users.root_urls')), url(r'^cluster/', include('sxconsole.clusters.urls')), url(r'^sx-management/', include('sxconsole.sx_management.urls')), url(r'^', include('django.conf.urls.i18n')), url(r'^tz/', include('tz_detect.urls')), ]
# Copyright (C) 2015-2016 Skylable Ltd. <*****@*****.**> # License: GPLv2 or later, see LICENSE for more details. ''' ''' from sxconsole.utils.urls import cbv_url_helper as url from . import views urlpatterns = [ url(r'^login/$', views.LoginView, login=False), url(r'^logout/$', views.LogoutView, login=False), url(r'^profile/$', views.ProfileView), url(r'^change_password/$', views.ChangePasswordView), url(r'^forgot_password/$', views.ForgotPasswordView, login=False), url(r'^password_reset/(?P<token>\w+)/$', views.PasswordResetView, login=False), url(r'^invitation/(?P<token>\w+)/$', views.InvitationView, login=False), url(r'^$', views.AdminListView), url(r'^invite/$', views.InviteAdminView), url(r'^(?P<pk>\d+)/delete$', views.DeleteAdminView), url(r'^(?P<pk>\d+)/manage-clusters$', views.ManageAdminClustersView), ]
# Copyright (C) 2015-2016 Skylable Ltd. <*****@*****.**> # License: GPLv2 or later, see LICENSE for more details. ''' ''' from sxconsole.utils.urls import cbv_url_helper as url from . import views urlpatterns = [ url(r'^invitation/(?P<token>\w+)/$', views.InvitationView, login=False), url(r'^password_reset/(?P<token>\w+)/$', views.PasswordResetView, login=False), url(r'^success/$', views.PasswordSetView, login=False), url(r'^invalid_token/$', views.InvalidTokenView, login=False), ]
# Copyright (C) 2015-2016 Skylable Ltd. <*****@*****.**> # License: GPLv2 or later, see LICENSE for more details. ''' ''' from sxconsole.utils.urls import cbv_url_helper as url from . import views urlpatterns = [ url(r'^add/$', views.CreateUserView), url(r'^(?P<email>[^/]+)/delete/$', views.DeleteUserView), url(r'^(?P<email>[^/]+)/send_password_reset/$', views.SendPasswordResetView), url(r'^(?P<email>[^/]+)/login-options/$', views.UserLoginOptionsView), ]