diff options
Diffstat (limited to 'restaurant_orders/dashboard/urls.py')
-rw-r--r-- | restaurant_orders/dashboard/urls.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/restaurant_orders/dashboard/urls.py b/restaurant_orders/dashboard/urls.py new file mode 100644 index 0000000..cd67ce3 --- /dev/null +++ b/restaurant_orders/dashboard/urls.py | |||
@@ -0,0 +1,17 @@ | |||
1 | from django.urls import path | ||
2 | from dashboard.views import Home, DashboardView, DashboardOrderView, ChangeOrderStatusView, AddToBillView | ||
3 | from dashboard.consumers import OrderConsumer | ||
4 | |||
5 | app_name="dashboard" | ||
6 | |||
7 | urlpatterns = [ | ||
8 | path('', Home.as_view(), name="home"), | ||
9 | path('restaurant/<int:restaurant_pk>/', DashboardView.as_view(), name='restaurant_dashboard'), | ||
10 | path('restaurant/order/<int:pk>/', DashboardOrderView.as_view(), name='order_dashboard'), | ||
11 | path('restaurant/order/<int:pk>/change/status/', ChangeOrderStatusView.as_view(), name='order_status_change'), | ||
12 | path('restaurant/order/<int:pk>/add_to_bill/', AddToBillView.as_view(), name='order_add_to_bill'), | ||
13 | ] | ||
14 | |||
15 | websocket_urlpatterns = [ | ||
16 | path('orders/<int:restaurant_pk>/', OrderConsumer.as_asgi()), | ||
17 | ] | ||