summaryrefslogtreecommitdiffstats
path: root/restaurant_orders/dashboard/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'restaurant_orders/dashboard/urls.py')
-rw-r--r--restaurant_orders/dashboard/urls.py17
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 @@
1from django.urls import path
2from dashboard.views import Home, DashboardView, DashboardOrderView, ChangeOrderStatusView, AddToBillView
3from dashboard.consumers import OrderConsumer
4
5app_name="dashboard"
6
7urlpatterns = [
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
15websocket_urlpatterns = [
16 path('orders/<int:restaurant_pk>/', OrderConsumer.as_asgi()),
17]