inital commit
This commit is contained in:
23
booking/urls.py
Normal file
23
booking/urls.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import (
|
||||
AvailabilityView,
|
||||
BookingCreateView,
|
||||
BookingDetailView,
|
||||
BookingListView,
|
||||
CustomerCancelBookingView,
|
||||
VendorApproveBookingView,
|
||||
VendorDeclineBookingView,
|
||||
health_check,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path("health/", health_check, name="health_check"),
|
||||
path("availability/", AvailabilityView.as_view(), name="availability"),
|
||||
path("bookings/", BookingListView.as_view(), name="booking_list"),
|
||||
path("bookings/request/", BookingCreateView.as_view(), name="booking_request"),
|
||||
path("bookings/<int:pk>/", BookingDetailView.as_view(), name="booking_detail"),
|
||||
path("bookings/<int:pk>/approve/", VendorApproveBookingView.as_view(), name="booking_approve"),
|
||||
path("bookings/<int:pk>/decline/", VendorDeclineBookingView.as_view(), name="booking_decline"),
|
||||
path("bookings/<int:pk>/cancel/", CustomerCancelBookingView.as_view(), name="booking_cancel"),
|
||||
]
|
||||
Reference in New Issue
Block a user