2021-04-13 12:44:22 +00:00
|
|
|
from django.urls import path, reverse_lazy
|
|
|
|
from django.views.generic import RedirectView
|
2021-03-24 06:43:05 +00:00
|
|
|
|
2021-04-20 11:37:36 +00:00
|
|
|
from .views import ClientRegistrationView, ClientProfileView, ClientDashboardView, ClientBookingsView, ClientBookingView
|
2021-03-24 06:43:05 +00:00
|
|
|
|
|
|
|
app_name = "clients"
|
|
|
|
|
|
|
|
urlpatterns = [
|
2021-04-12 12:39:18 +00:00
|
|
|
path('dashboard/', ClientDashboardView.as_view(), name="dashboard"),
|
2021-03-24 06:43:05 +00:00
|
|
|
path('register/', ClientRegistrationView.as_view(), name="register"),
|
|
|
|
path('profile/', ClientProfileView.as_view(), name="profile"),
|
2021-04-12 13:32:15 +00:00
|
|
|
path('bookings/', ClientBookingsView.as_view(), name="bookings"),
|
2021-04-20 11:37:36 +00:00
|
|
|
path('bookings/<slug:uuid>/', ClientBookingView.as_view(), name="booking_view"),
|
2021-04-13 12:44:22 +00:00
|
|
|
path('', RedirectView.as_view(url=reverse_lazy("clients:dashboard"))),
|
2021-03-24 06:43:05 +00:00
|
|
|
]
|