24 lines
1.3 KiB
Python
24 lines
1.3 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = 'store'
|
|
|
|
urlpatterns = [
|
|
path('', views.card_list, name='card_list'), # Home page associated with 'card_list' view
|
|
path('home/', views.card_list, name='home'), # Explicit home alias for readability and templates using 'home' naming convention
|
|
path('card/<int:card_id>/', views.card_detail, name='card_detail'),
|
|
path('cart/', views.cart_view, name='cart'),
|
|
path('cart/add/<int:listing_id>/', views.add_to_cart, name='add_to_cart'),
|
|
path('cart/remove/<int:item_id>/', views.remove_from_cart, name='remove_from_cart'),
|
|
path('api/stock/<int:card_id>/', views.get_card_stock, name='get_card_stock'),
|
|
path('deck-buyer/', views.deck_buyer, name='deck_buyer'),
|
|
path('cart/insurance/', views.toggle_insurance, name='toggle_insurance'),
|
|
path('bounty-board/', views.bounty_board, name='bounty_board'),
|
|
path('packs/', views.pack_list, name='pack_list'),
|
|
path('cart/add-pack/<int:pack_listing_id>/', views.add_pack_to_cart, name='add_pack_to_cart'),
|
|
path('checkout/', views.checkout, name='checkout'),
|
|
path('my-packs/', views.my_packs, name='my_packs'),
|
|
path('packs/open/<int:pack_id>/', views.open_pack, name='open_pack'),
|
|
path('order/<int:order_id>/', views.order_detail, name='order_detail'),
|
|
]
|