summaryrefslogtreecommitdiffstats
path: root/restaurant_orders/dashboard/urls.py
blob: cd67ce3f47c508cdfe270c6715ebb4f58b2afbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.urls import path
from dashboard.views import Home, DashboardView, DashboardOrderView, ChangeOrderStatusView, AddToBillView
from dashboard.consumers import OrderConsumer

app_name="dashboard"

urlpatterns = [
    path('', Home.as_view(), name="home"),
    path('restaurant/<int:restaurant_pk>/', DashboardView.as_view(), name='restaurant_dashboard'),
    path('restaurant/order/<int:pk>/', DashboardOrderView.as_view(), name='order_dashboard'),
    path('restaurant/order/<int:pk>/change/status/', ChangeOrderStatusView.as_view(), name='order_status_change'),
    path('restaurant/order/<int:pk>/add_to_bill/', AddToBillView.as_view(), name='order_add_to_bill'),
]

websocket_urlpatterns = [
    path('orders/<int:restaurant_pk>/', OrderConsumer.as_asgi()),
]