437 lines
13 KiB
Python
437 lines
13 KiB
Python
from django.contrib.auth.views import LogoutView
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
from .backup_restores import RestoreKind
|
|
from .credential_views import DatabaseCredentialView, MailboxCredentialView
|
|
from .dns_replica_views import DnsReplicaView
|
|
from .health_views import ServiceHealthView
|
|
from .independent_website_views import (
|
|
IndependentWebsiteCreate,
|
|
IndependentWebsiteManifest,
|
|
IndependentWebsiteOperation,
|
|
)
|
|
from .mail_dns_views import MailDnsCheckView, RequestMailDnsSetup
|
|
from .mail_policy_views import MailRoutingEditor, MailVacationEditor
|
|
from .mail_queue_views import MailQueueView
|
|
from .password_reset import (
|
|
CustomerPasswordResetView,
|
|
CustomerResetCompleteView,
|
|
CustomerResetConfirmView,
|
|
CustomerResetDoneView,
|
|
)
|
|
from .phpmyadmin import PhpMyAdminLaunch, redeem_phpmyadmin
|
|
from .reseller_onboarding_views import (
|
|
ResellerCustomerCreate,
|
|
ResellerCustomerLink,
|
|
)
|
|
from .reseller_views import (
|
|
ResellerCreate,
|
|
ResellerDetail,
|
|
ResellerEdit,
|
|
ResellerList,
|
|
)
|
|
from .retirement_views import RetirementList, RetirementView
|
|
from .roundcube import RoundcubeLaunch, redeem_roundcube
|
|
from .sign_in import (
|
|
ConfirmFactorView,
|
|
EnrollFactorView,
|
|
PanelLoginView,
|
|
VerifyFactorView,
|
|
)
|
|
from .website_file_views import WebsiteFilesView
|
|
from .website_job_views import WebsiteJobEditor, WebsiteJobList
|
|
from .website_usage_views import WebsiteUsageView
|
|
|
|
app_name = "panel"
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"dns-zones/<int:pk>/replication/",
|
|
DnsReplicaView.as_view(),
|
|
name="dns_replication",
|
|
),
|
|
path(
|
|
"mail-domains/<int:pk>/queue/",
|
|
MailQueueView.as_view(),
|
|
name="mail_queue",
|
|
),
|
|
path("", views.AccountList.as_view(), name="accounts"),
|
|
path(
|
|
"service-health/", ServiceHealthView.as_view(), name="service_health"
|
|
),
|
|
path("sign-in/", PanelLoginView.as_view(), name="login"),
|
|
path("sign-in/verify/", VerifyFactorView.as_view(), name="factor_verify"),
|
|
path("sign-in/enroll/", EnrollFactorView.as_view(), name="factor_enroll"),
|
|
path(
|
|
"sign-in/confirm/", ConfirmFactorView.as_view(), name="factor_confirm"
|
|
),
|
|
path(
|
|
"password-reset/",
|
|
CustomerPasswordResetView.as_view(),
|
|
name="password_reset",
|
|
),
|
|
path(
|
|
"password-reset/requested/",
|
|
CustomerResetDoneView.as_view(),
|
|
name="password_reset_done",
|
|
),
|
|
path(
|
|
"password-reset/<uidb64>/<token>/",
|
|
CustomerResetConfirmView.as_view(),
|
|
name="password_reset_confirm",
|
|
),
|
|
path(
|
|
"password-reset/complete/",
|
|
CustomerResetCompleteView.as_view(),
|
|
name="password_reset_complete",
|
|
),
|
|
path("sign-out/", LogoutView.as_view(), name="logout"),
|
|
path(
|
|
"accounts/new/", views.AccountCreate.as_view(), name="account_create"
|
|
),
|
|
path("retired-accounts/", RetirementList.as_view(), name="retirements"),
|
|
path(
|
|
"accounts/<int:pk>/retirement/",
|
|
RetirementView.as_view(),
|
|
name="account_retirement",
|
|
),
|
|
path("accounts/<int:pk>/", views.AccountDetail.as_view(), name="account"),
|
|
path(
|
|
"accounts/<int:pk>/usage/",
|
|
WebsiteUsageView.as_view(),
|
|
name="website_usage",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/files/",
|
|
WebsiteFilesView.as_view(),
|
|
name="website_files",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/website-jobs/",
|
|
WebsiteJobList.as_view(),
|
|
name="website_jobs",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/website-jobs/new/",
|
|
WebsiteJobEditor.as_view(),
|
|
name="website_job_create",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/website-jobs/<int:job_pk>/",
|
|
WebsiteJobEditor.as_view(),
|
|
name="website_job_edit",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/websites/<int:site_pk>/files/",
|
|
WebsiteFilesView.as_view(),
|
|
name="independent_website_files",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/websites/new/",
|
|
IndependentWebsiteCreate.as_view(),
|
|
name="independent_website_create",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/websites/<int:site_pk>/manifest/",
|
|
IndependentWebsiteManifest.as_view(),
|
|
name="independent_website_manifest",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/websites/<int:site_pk>/<str:operation>/",
|
|
IndependentWebsiteOperation.as_view(),
|
|
name="independent_website_operation",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/customers/new/",
|
|
ResellerCustomerCreate.as_view(),
|
|
name="reseller_customer_create",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/customers/link/",
|
|
ResellerCustomerLink.as_view(),
|
|
name="reseller_customer_link",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/service-access/",
|
|
views.ChangeHostingServices.as_view(),
|
|
name="account_service_access",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/php-settings/",
|
|
views.SitePhpSettingsEdit.as_view(),
|
|
name="site_php_settings",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/php-version/",
|
|
views.SitePhpVersionEdit.as_view(),
|
|
name="site_php_version",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/aliases/new/",
|
|
views.WebsiteAliasCreate.as_view(),
|
|
name="website_alias_create",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/aliases/<int:alias_pk>/<str:action>/",
|
|
views.WebsiteAliasAction.as_view(),
|
|
name="website_alias_action",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/measure-storage/",
|
|
views.RequestSiteStorageMeasurement.as_view(),
|
|
name="measure_site_storage",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/storage-limit/",
|
|
views.SiteStorageLimitEdit.as_view(),
|
|
name="site_storage_limit",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backup-manifest/",
|
|
views.DownloadAccountBackupManifest.as_view(),
|
|
name="account_backup_manifest",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/",
|
|
views.RequestAccountBackup.as_view(),
|
|
name="account_backup_create",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/archives/",
|
|
views.AccountBackupArchiveList.as_view(),
|
|
name="account_backup_archives",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/<int:backup_pk>/offsite/retry/",
|
|
views.RetryOffsiteBackup.as_view(),
|
|
name="retry_offsite_backup",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/retention/",
|
|
views.EditBackupRetention.as_view(),
|
|
name="account_backup_retention",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/<int:backup_pk>/protection/",
|
|
views.EditBackupProtection.as_view(),
|
|
name="account_backup_protection",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/schedule/",
|
|
views.EditAccountBackupSchedule.as_view(),
|
|
name="account_backup_schedule",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/<int:backup_pk>/restore/",
|
|
views.RequestWebsiteRestore.as_view(),
|
|
name="website_restore",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/<int:backup_pk>/restore/database/",
|
|
views.RequestComponentRestore.as_view(kind=RestoreKind.DATABASE),
|
|
name="database_restore",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/backups/<int:backup_pk>/restore/mailbox/",
|
|
views.RequestComponentRestore.as_view(kind=RestoreKind.MAILBOX),
|
|
name="mailbox_restore",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/restores/<int:restore_pk>/retry-mailbox/",
|
|
views.RetryRemoteMailRestore.as_view(),
|
|
name="mailbox_restore_retry",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/sftp/",
|
|
views.SiteSFTPKeys.as_view(),
|
|
name="sftp_keys",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/edit/",
|
|
views.AccountEdit.as_view(),
|
|
name="account_edit",
|
|
),
|
|
path("resellers/", ResellerList.as_view(), name="resellers"),
|
|
path("resellers/new/", ResellerCreate.as_view(), name="reseller_create"),
|
|
path("resellers/<int:pk>/", ResellerDetail.as_view(), name="reseller"),
|
|
path(
|
|
"resellers/<int:pk>/edit/",
|
|
ResellerEdit.as_view(),
|
|
name="reseller_edit",
|
|
),
|
|
path("customers/", views.CustomerList.as_view(), name="customers"),
|
|
path(
|
|
"customers/new/",
|
|
views.CustomerCreate.as_view(),
|
|
name="customer_create",
|
|
),
|
|
path(
|
|
"customers/<int:pk>/access/",
|
|
views.CustomerAccess.as_view(),
|
|
name="customer_access",
|
|
),
|
|
path(
|
|
"customers/<int:pk>/view-as/",
|
|
views.CustomerImpersonationStart.as_view(),
|
|
name="impersonation_start",
|
|
),
|
|
path(
|
|
"customers/<int:pk>/support/",
|
|
views.CustomerImpersonationStart.as_view(write_enabled=True),
|
|
name="impersonation_write_start",
|
|
),
|
|
path(
|
|
"customer-view/end/",
|
|
views.CustomerImpersonationStop.as_view(),
|
|
name="impersonation_stop",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/databases/new/",
|
|
views.DatabaseCreate.as_view(),
|
|
name="database_create",
|
|
),
|
|
path(
|
|
"databases/<int:pk>/phpmyadmin/",
|
|
PhpMyAdminLaunch.as_view(),
|
|
name="phpmyadmin_launch",
|
|
),
|
|
path("_bridge/phpmyadmin/", redeem_phpmyadmin, name="phpmyadmin_redeem"),
|
|
path(
|
|
"mailboxes/<int:pk>/webmail/",
|
|
RoundcubeLaunch.as_view(),
|
|
name="roundcube_launch",
|
|
),
|
|
path("_bridge/roundcube/", redeem_roundcube, name="roundcube_redeem"),
|
|
path(
|
|
"databases/<int:pk>/credentials/",
|
|
DatabaseCredentialView.as_view(),
|
|
name="database_credentials",
|
|
),
|
|
path(
|
|
"databases/<int:pk>/credentials/rotate/",
|
|
DatabaseCredentialView.as_view(rotating=True),
|
|
name="database_credential_rotation",
|
|
),
|
|
path(
|
|
"databases/<int:pk>/manifest/",
|
|
views.DownloadDatabaseManifest.as_view(),
|
|
name="database_manifest",
|
|
),
|
|
path(
|
|
"databases/<int:pk>/provision/",
|
|
views.RequestDatabaseProvisioning.as_view(),
|
|
name="database_provision",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/dns-zones/new/",
|
|
views.DnsZoneCreate.as_view(),
|
|
name="dns_zone_create",
|
|
),
|
|
path(
|
|
"dns-zones/<int:pk>/edit/",
|
|
views.DnsZoneEdit.as_view(),
|
|
name="dns_zone_edit",
|
|
),
|
|
path(
|
|
"dns-zones/<int:pk>/manifest/",
|
|
views.DownloadDnsZoneManifest.as_view(),
|
|
name="dns_zone_manifest",
|
|
),
|
|
path(
|
|
"dns-zones/<int:pk>/publish/",
|
|
views.RequestDnsPublication.as_view(),
|
|
name="dns_zone_publish",
|
|
),
|
|
path(
|
|
"mail-domains/<int:pk>/dns-check/",
|
|
MailDnsCheckView.as_view(),
|
|
name="mail_dns_check",
|
|
),
|
|
path(
|
|
"mail-domains/<int:pk>/dns-setup/",
|
|
RequestMailDnsSetup.as_view(),
|
|
name="mail_dns_setup",
|
|
),
|
|
path(
|
|
"mail-domains/<int:pk>/routing/",
|
|
MailRoutingEditor.as_view(),
|
|
name="mail_routing",
|
|
),
|
|
path(
|
|
"mailboxes/<int:pk>/automatic-replies/",
|
|
MailVacationEditor.as_view(),
|
|
name="mail_vacation",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/mailboxes/new/",
|
|
views.MailboxCreate.as_view(),
|
|
name="mailbox_create",
|
|
),
|
|
path(
|
|
"mailboxes/<int:pk>/credentials/",
|
|
MailboxCredentialView.as_view(),
|
|
name="mailbox_credentials",
|
|
),
|
|
path(
|
|
"mailboxes/<int:pk>/credentials/rotate/",
|
|
MailboxCredentialView.as_view(rotating=True),
|
|
name="mailbox_credential_rotation",
|
|
),
|
|
path(
|
|
"mailboxes/<int:pk>/manifest/",
|
|
views.DownloadMailboxManifest.as_view(),
|
|
name="mailbox_manifest",
|
|
),
|
|
path(
|
|
"mailboxes/<int:pk>/quota/",
|
|
views.MailboxQuotaEdit.as_view(),
|
|
name="mailbox_quota",
|
|
),
|
|
path(
|
|
"mailboxes/<int:pk>/provision/",
|
|
views.RequestMailboxProvisioning.as_view(),
|
|
name="mailbox_provision",
|
|
),
|
|
path(
|
|
"accounts/<int:pk>/plans/",
|
|
views.RequestWebPlan.as_view(),
|
|
name="request_plan",
|
|
),
|
|
path(
|
|
"hosting-plans/", views.HostingPlanList.as_view(), name="hosting_plans"
|
|
),
|
|
path(
|
|
"hosting-plans/new/",
|
|
views.HostingPlanCreate.as_view(),
|
|
name="hosting_plan_create",
|
|
),
|
|
path(
|
|
"hosting-plans/<int:pk>/edit/",
|
|
views.HostingPlanEdit.as_view(),
|
|
name="hosting_plan_edit",
|
|
),
|
|
path("plans/", views.PlanList.as_view(), name="plans"),
|
|
path("plans/<int:pk>/", views.PlanDetail.as_view(), name="plan"),
|
|
path(
|
|
"plans/<int:pk>/activate/",
|
|
views.RequestWebActivation.as_view(),
|
|
name="plan_activate",
|
|
),
|
|
path(
|
|
"plans/<int:pk>/https/",
|
|
views.RequestWebHTTPS.as_view(),
|
|
name="plan_https",
|
|
),
|
|
path(
|
|
"plans/<int:pk>/smoke-bundle/",
|
|
views.DownloadWebPlan.as_view(),
|
|
name="download_smoke_bundle",
|
|
),
|
|
path(
|
|
"plans/<int:pk>/deployment-manifest/",
|
|
views.DownloadWebPlan.as_view(manifest=True),
|
|
name="download_deployment_manifest",
|
|
),
|
|
]
|