diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-17 01:47:57 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-17 01:52:26 +0200 |
commit | c21f4b3dacd597a15a5ec39d525df1dfe1b70376 (patch) | |
tree | 0dfc51d2ffeb7b5022d9ad852f2fd3620c72196a /restaurant_orders/dashboard/urls.py | |
parent | 2c6f98aeef4fa1aba5678fe17c8e762a11db7b40 (diff) | |
download | restaurant-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.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 | ] | ||