Files
CyberPanel/ftp/urls.py
master3395 90fcc7b621 FTP: path normalization, post-create directory edit, enable/disable
- Resolve FTP home paths without duplicating /home/domain; support absolute paths under site home
- Add changeFTPDirectory API and list UI; improve create form path help
- Add setFTPAccountStatus (Status 0/1) with Enable/Disable on list page
- Pure-FTPd MySQL: require Status='1' for authentication in install templates
- Plugin signals for change directory and account status
2026-03-24 20:22:56 +01:00

27 lines
1.5 KiB
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.loadFTPHome, name='loadFTPHome'),
path('createFTPAccount', views.createFTPAccount, name='createFTPAccount'),
path('submitFTPCreation', views.submitFTPCreation, name='ftpHome'),
path('ResetFTPConfigurations', views.ResetFTPConfigurations, name='ResetFTPConfigurations'),
path('resetftpnow', views.resetftpnow, name='resetftpnow'),
path('getresetstatus', views.getresetstatus, name='getresetstatus'),
path('deleteFTPAccount', views.deleteFTPAccount, name='deleteFTPAccount'),
path('fetchFTPAccounts', views.fetchFTPAccounts, name='fetchFTPAccounts'),
path('submitFTPDelete', views.submitFTPDelete, name='submitFTPDelete'),
path('listFTPAccounts', views.listFTPAccounts, name='listFTPAccounts'),
path('getAllFTPAccounts', views.getAllFTPAccounts, name='getAllFTPAccounts'),
path('changePassword', views.changePassword, name='changePassword'),
path('changeFTPDirectory', views.changeFTPDirectory, name='changeFTPDirectory'),
path('setFTPAccountStatus', views.setFTPAccountStatus, name='setFTPAccountStatus'),
path('updateFTPQuota', views.updateFTPQuota, name='updateFTPQuota'),
path('getFTPQuotaUsage', views.getFTPQuotaUsage, name='getFTPQuotaUsage'),
path('migrateFTPQuotas', views.migrateFTPQuotas, name='migrateFTPQuotas'),
# FTP Quota Management page (at /ftp/quotaManagement to avoid websites/<domain> catch-all)
path('quotaManagement', views.ftpQuotaManagementPage, name='ftpQuotaManagementPage'),
]