15 lines
No EOL
695 B
Python
15 lines
No EOL
695 B
Python
from django.urls import path, reverse_lazy
|
|
from django.views.generic import RedirectView
|
|
|
|
from .views import ClientRegistrationView, ClientProfileView, ClientDashboardView, ClientBookingsView, ClientBookingView
|
|
|
|
app_name = "clients"
|
|
|
|
urlpatterns = [
|
|
path('dashboard/', ClientDashboardView.as_view(), name="dashboard"),
|
|
path('register/', ClientRegistrationView.as_view(), name="register"),
|
|
path('profile/', ClientProfileView.as_view(), name="profile"),
|
|
path('bookings/', ClientBookingsView.as_view(), name="bookings"),
|
|
path('bookings/<slug:uuid>/', ClientBookingView.as_view(), name="booking_view"),
|
|
path('', RedirectView.as_view(url=reverse_lazy("clients:dashboard"))),
|
|
] |