""" URL configuration for core app. """ from django.urls import path from . import views app_name = 'core' urlpatterns = [ # Dashboard and main views path('', views.DashboardView.as_view(), name='dashboard'), path('audit-log/', views.AuditLogListView.as_view(), name='audit_log'), path('system-configuration/', views.SystemConfigurationListView.as_view(), name='system_configuration'), # Tenant CRUD URLs path('tenants/', views.TenantListView.as_view(), name='tenant_list'), path('tenants/create/', views.TenantCreateView.as_view(), name='tenant_create'), path('tenants//', views.TenantDetailView.as_view(), name='tenant_detail'), path('tenants//edit/', views.TenantUpdateView.as_view(), name='tenant_update'), path('tenants//delete/', views.TenantDeleteView.as_view(), name='tenant_delete'), path('tenants//activate/', views.activate_tenant, name='activate_tenant'), path('tenants//deactivate/', views.deactivate_tenant, name='deactivate_tenant'), # Department CRUD URLs # path('departments/', views.DepartmentListView.as_view(), name='department_list'), # path('departments/create/', views.DepartmentCreateView.as_view(), name='department_create'), # path('departments//', views.DepartmentDetailView.as_view(), name='department_detail'), # path('departments//edit/', views.DepartmentUpdateView.as_view(), name='department_update'), # path('departments//delete/', views.DepartmentDeleteView.as_view(), name='department_delete'), # System Configuration CRUD URLs path('system-configuration/create/', views.SystemConfigurationCreateView.as_view(), name='system_configuration_create'), path('system-configuration//', views.SystemConfigurationDetailView.as_view(), name='system_configuration_detail'), path('system-configuration//edit/', views.SystemConfigurationUpdateView.as_view(), name='system_configuration_update'), path('system-configuration//delete/', views.SystemConfigurationDeleteView.as_view(), name='system_configuration_delete'), # System Notification CRUD URLs path('notifications/', views.SystemNotificationListView.as_view(), name='system_notification_list'), path('notifications/create/', views.SystemNotificationCreateView.as_view(), name='system_notification_create'), path('notifications//', views.SystemNotificationDetailView.as_view(), name='system_notification_detail'), path('notifications//edit/', views.SystemNotificationUpdateView.as_view(), name='system_notification_update'), path('notifications//delete/', views.SystemNotificationDeleteView.as_view(), name='system_notification_delete'), path('notifications//activate', views.activate_notification, name='activate_notification'), path('notifications//deactivate', views.deactivate_notification, name='deactivate_notification'), # Audit Log Detail URL path('audit-log//', views.AuditLogDetailView.as_view(), name='audit_log_detail'), # Integration Log URLs path('integration-logs/', views.IntegrationLogListView.as_view(), name='integration_log_list'), path('integration-logs//', views.IntegrationLogDetailView.as_view(), name='integration_log_detail'), # HTMX views path('htmx/dashboard-stats/', views.dashboard_stats, name='dashboard_stats'), path('htmx/audit-log-search/', views.audit_log_search, name='audit_log_search'), path('htmx/system-notifications/', views.system_notifications, name='system_notifications'), path('htmx/dismiss-notification//', views.dismiss_notification, name='dismiss_notification'), path('htmx/tenant-info/', views.tenant_info, name='tenant_info'), path('htmx/system-health/', views.system_health, name='system_health'), path('htmx/tenant-stats/', views.tenant_stats, name='tenant_stats'), path('htmx/configuration-search/', views.configuration_search, name='configuration_search'), path('htmx/audit-log-list/', views.audit_log_list_htmx, name='audit_log_list_htmx'), # Action URLs # path('notifications//dismiss/', views.dismiss_notification, name='dismiss_notification'), path('system-configuration/reset/', views.reset_system_configuration, name='reset_system_configuration'), path('audit-log/export/', views.export_audit_log, name='export_audit_log'), # Search and Filter URLs path('search/', views.CoreSearchView.as_view(), name='search'), path('search/tenants/', views.tenant_search, name='tenant_search'), path('search/audit-logs/', views.audit_log_search, name='audit_log_search'), # Bulk Operations path('tenants/bulk-activate/', views.bulk_activate_tenants, name='bulk_activate_tenants'), path('tenants/bulk-deactivate/', views.bulk_deactivate_tenants, name='bulk_deactivate_tenants'), path('audit-log/bulk-export/', views.bulk_export_audit_logs, name='bulk_export_audit_logs'), # API-like endpoints for AJAX path('api/tenant-validation/', views.validate_tenant_data, name='validate_tenant_data'), path('api/system-status/', views.get_system_status, name='get_system_status'), path('api/configuration-backup/', views.backup_configuration, name='backup_configuration'), path('api/configuration-restore/', views.restore_configuration, name='restore_configuration'), ]