2023-11-21 11:48:39 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
URL routes definition.
|
|
|
|
|
|
|
|
Describe the paths where the views are accesible.
|
|
|
|
"""
|
|
|
|
from django.urls import path
|
2024-01-25 12:36:10 +00:00
|
|
|
from django.views.generic import RedirectView
|
2023-11-21 11:48:39 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
app_name = 'musician'
|
|
|
|
|
|
|
|
urlpatterns = [
|
2024-01-25 12:36:10 +00:00
|
|
|
path('', RedirectView.as_view(pattern_name='musician:dashboard', permanent=False), name='index'),
|
|
|
|
|
2023-11-21 11:48:39 +00:00
|
|
|
path('auth/login/', views.LoginView.as_view(), name='login'),
|
|
|
|
path('auth/logout/', views.LogoutView.as_view(), name='logout'),
|
|
|
|
path('dashboard/', views.DashboardView.as_view(), name='dashboard'),
|
2023-11-29 11:42:54 +00:00
|
|
|
|
2023-11-21 11:48:39 +00:00
|
|
|
path('domains/<int:pk>/', views.DomainDetailView.as_view(), name='domain-detail'),
|
2023-11-29 11:16:17 +00:00
|
|
|
path('domains/<int:pk>/add-record/', views.DomainAddRecordView.as_view(), name='domain-add-record'),
|
2023-11-29 11:42:54 +00:00
|
|
|
path('domains/<int:pk>/records/<int:record_pk>/update/', views.DomainUpdateRecordView.as_view(), name='domain-update-record'),
|
|
|
|
path('domains/<int:pk>/records/<int:record_pk>/delete/', views.DomainDeleteRecordView.as_view(), name='domain-delete-record'),
|
|
|
|
|
2023-11-21 11:48:39 +00:00
|
|
|
path('billing/', views.BillingView.as_view(), name='billing'),
|
|
|
|
path('bills/<int:pk>/download/', views.BillDownloadView.as_view(), name='bill-download'),
|
|
|
|
path('profile/', views.ProfileView.as_view(), name='profile'),
|
|
|
|
path('profile/setLang/<code>', views.profile_set_language, name='profile-set-lang'),
|
2024-01-26 12:51:08 +00:00
|
|
|
path('address/', views.AddressListView.as_view(), name='address-list'),
|
2023-11-21 11:48:39 +00:00
|
|
|
path('address/new/', views.MailCreateView.as_view(), name='address-create'),
|
|
|
|
path('address/<int:pk>/', views.MailUpdateView.as_view(), name='address-update'),
|
|
|
|
path('address/<int:pk>/delete/', views.AddressDeleteView.as_view(), name='address-delete'),
|
2024-01-26 12:35:10 +00:00
|
|
|
path('mailboxes/', views.MailboxListView.as_view(), name='mailbox-list'),
|
2023-11-21 11:48:39 +00:00
|
|
|
path('mailboxes/new/', views.MailboxCreateView.as_view(), name='mailbox-create'),
|
|
|
|
path('mailboxes/<int:pk>/', views.MailboxUpdateView.as_view(), name='mailbox-update'),
|
|
|
|
path('mailboxes/<int:pk>/delete/', views.MailboxDeleteView.as_view(), name='mailbox-delete'),
|
|
|
|
path('mailboxes/<int:pk>/change-password/', views.MailboxChangePasswordView.as_view(), name='mailbox-password'),
|
|
|
|
path('mailing-lists/', views.MailingListsView.as_view(), name='mailing-lists'),
|
2024-01-30 12:47:22 +00:00
|
|
|
path('databases/', views.DatabaseListView.as_view(), name='database-list'),
|
2024-01-26 12:35:10 +00:00
|
|
|
path('saas/', views.SaasListView.as_view(), name='saas-list'),
|
2023-11-21 11:48:39 +00:00
|
|
|
]
|