mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 10:36:23 +02:00
- 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
27 lines
1.5 KiB
Python
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'),
|
|
]
|