Coverage for website/pizzas/api/v2/admin/urls.py: 100.00%
4 statements
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
1from django.urls import path
3from pizzas.api.v2.admin.views import (
4 FoodEventAdminDetailView,
5 FoodEventAdminListView,
6 FoodEventOrdersAdminListView,
7 FoodOrderAdminDetailView,
8 ProductAdminDetailAPIView,
9 ProductsAdminListView,
10)
12app_name = "food"
14urlpatterns = [
15 path("food/events/", FoodEventAdminListView.as_view(), name="food-events-index"),
16 path(
17 "food/events/<int:pk>/",
18 FoodEventAdminDetailView.as_view(),
19 name="food-event-detail",
20 ),
21 path(
22 "food/events/<int:pk>/orders/",
23 FoodEventOrdersAdminListView.as_view(),
24 name="food-event-orders",
25 ),
26 path(
27 "food/events/<int:event_id>/orders/<int:pk>/",
28 FoodOrderAdminDetailView.as_view(),
29 name="food-event-order-detail",
30 ),
31 path("food/products/", ProductsAdminListView.as_view(), name="food-products-index"),
32 path(
33 "food/products/<int:pk>/",
34 ProductAdminDetailAPIView.as_view(),
35 name="food-product-detail",
36 ),
37]