from django.urls import path from . import views from . import invoice_views from django.apps import apps from django.core.management import call_command # İlk yüklemede SSH kontrolü yap if apps.apps_ready: try: call_command('check_ssh') except: pass # app_name = 'ssh_manager' # namespace'i kaldır urlpatterns = [ path('', views.dashboard, name='project_list'), # Ana sayfa dashboard olsun path('dashboard/', views.dashboard, name='dashboard'), path('projeler/', views.project_list, name='projeler'), path('host-yonetimi/', views.host_yonetimi, name='host_yonetimi'), path('yedeklemeler/', views.yedeklemeler, name='yedeklemeler'), path('islem-gecmisi/', views.islem_gecmisi, name='islem_gecmisi'), path('ayarlar/', views.ayarlar, name='ayarlar'), path('musteriler/', views.musteriler, name='musteriler'), path('musteri/create/', views.create_customer, name='create_customer'), path('musteri//edit/', views.edit_customer, name='edit_customer'), path('musteri//delete/', views.delete_customer, name='delete_customer'), path('get-customer-details//', views.get_customer_details, name='get_customer_details'), path('update-customer//', views.update_customer, name='update_customer'), path('get_host//', views.get_host, name='get_host'), path('update_host//', views.update_host, name='update_host'), path('delete_host//', views.delete_host, name='delete_host'), path('update-hosts-status/', views.update_all_hosts_status, name='update_hosts_status'), path('project/create/', views.create_project, name='create_project'), path('project//upload/', views.upload_project_zip, name='upload_project_zip'), path('delete_project//', views.delete_project, name='delete_project'), path('project//setup-venv/', views.setup_venv, name='setup_venv'), path('project//renew-host/', views.renew_host, name='renew_host'), path('project//check-requirements/', views.check_requirements, name='check_requirements'), path('project//update-requirements/', views.update_requirements, name='update_requirements'), path('project//delete-requirement-line/', views.delete_requirement_line, name='delete_requirement_line'), path('project//download-req/', views.download_req_file, name='download_req_file'), path('logs//', views.view_logs, name='credential_logs'), path('logs/clear/', views.clear_logs, name='clear_logs'), path('logs/all/', views.get_all_logs, name='get_all_logs'), path('logs/test/', views.get_all_logs, name='get_all_logs_test'), # Test için path('logs/', views.view_logs, name='system_logs'), path('project//check-venv/', views.check_venv, name='check_venv'), path('project//install-requirements/', views.install_requirements, name='install_requirements'), path('project//check-folder/', views.check_folder_empty, name='check_folder_empty'), path('project//list-files/', views.list_project_files, name='list_project_files'), path('project/upload/', views.upload_project_files, name='upload_project_files'), path('get-latest-logs/', views.get_latest_logs, name='get_latest_logs'), path('project//restart-supervisor/', views.restart_supervisor, name='restart_supervisor'), path('project//refresh/', views.refresh_project, name='refresh_project'), # path('backup/', views.backup_projects, name='backup_projects'), path('backup-project//', views.backup_project, name='backup_project'), path('project//backup-logs/', views.project_backup_logs, name='project_backup_logs'), path('project//clear-logs/', views.clear_project_logs, name='clear_project_logs'), path('project//check-site/', views.check_site_status_view, name='check_site_status'), path('project//meta-key/', views.get_project_meta_key, name='get_project_meta_key'), path('check-all-sites/', views.check_site_status_view, name='check_all_sites'), path('get-project-details//', views.get_project_details, name='get_project_details'), path('update-project//', views.update_project, name='update_project'), # Host yönetimi URL'leri path('test-host-connection//', views.test_host_connection, name='test_host_connection'), path('refresh-all-hosts/', views.refresh_all_hosts, name='refresh_all_hosts'), path('create-host/', views.create_host, name='create_host'), path('update-host//', views.update_host, name='update_host'), path('get-host-details//', views.get_host_details, name='get_host_details'), path('delete-host//', views.delete_host, name='delete_host'), path('test-host-connection-form/', views.test_host_connection_form, name='test_host_connection_form'), # Yedekleme endpoints path('start-backup/', views.start_backup, name='start_backup'), path('backup-all-projects/', views.backup_all_projects, name='backup_all_projects'), path('retry-backup/', views.retry_backup, name='retry_backup'), path('backup-details//', views.backup_details, name='backup_details'), path('cancel-backup//', views.cancel_backup, name='cancel_backup'), path('delete-backup-record//', views.delete_backup_record, name='delete_backup_record'), # Invoice URLs path('faturalar/', invoice_views.invoices, name='faturalar'), path('test-fatura/', invoice_views.test_fatura, name='test_fatura'), path('faturalar/detay//', invoice_views.invoice_detail, name='invoice_detail'), path('faturalar/create/', invoice_views.create_invoice, name='create_invoice'), path('faturalar/update//', invoice_views.update_invoice, name='update_invoice'), path('faturalar/delete//', invoice_views.delete_invoice, name='delete_invoice'), path('faturalar/update-status//', invoice_views.update_invoice_status, name='update_invoice_status'), path('faturalar/bulk-update-status/', invoice_views.bulk_update_invoice_status, name='bulk_update_invoice_status'), path('faturalar/bulk-delete/', invoice_views.bulk_delete_invoices, name='bulk_delete_invoices'), path('faturalar/detay-json//', invoice_views.get_invoice_details, name='get_invoice_details'), path('faturalar/raporlar/', invoice_views.invoice_reports, name='invoice_reports'), path('faturalar/kar-zarar/', invoice_views.profit_loss_report, name='profit_loss_report'), path('musteri//projeler/', invoice_views.get_projects_by_customer, name='get_projects_by_customer'), path('check-domain-expiration/', views.get_domain_expiration, name='check_domain_expiration'), # Domain sorgulama endpoint'i ]