summaryrefslogtreecommitdiffstats
path: root/restaurant_orders/dashboard/urls.py
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-17 01:47:57 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-17 01:52:26 +0200
commitc21f4b3dacd597a15a5ec39d525df1dfe1b70376 (patch)
tree0dfc51d2ffeb7b5022d9ad852f2fd3620c72196a /restaurant_orders/dashboard/urls.py
parent2c6f98aeef4fa1aba5678fe17c8e762a11db7b40 (diff)
downloadrestaurant-orders-c21f4b3dacd597a15a5ec39d525df1dfe1b70376.tar.gz
restaurant-orders-c21f4b3dacd597a15a5ec39d525df1dfe1b70376.zip
Add project.main
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]