from django.urls import path from . import views app_name = 'store' urlpatterns = [ path('', views.index, name='index'), # Root redirect logic path('browse/', views.card_list, name='card_list'), # Detailed browse page path('home/', views.card_list, name='home'), # Explicit home alias for compatibility path('card//', views.card_detail, name='card_detail'), path('cart/', views.cart_view, name='cart'), path('cart/add//', views.add_to_cart, name='add_to_cart'), path('cart/remove//', views.remove_from_cart, name='remove_from_cart'), path('api/stock//', views.get_card_stock, name='get_card_stock'), path('api/card-autocomplete/', views.card_autocomplete, name='card_autocomplete'), path('api/bounty-autocomplete/', views.bounty_autocomplete, name='bounty_autocomplete'), path('api/card-variants/', views.card_variants, name='card_variants'), path('deck-buyer/', views.deck_buyer, name='deck_buyer'), path('cart/insurance/', views.toggle_insurance, name='toggle_insurance'), path('bounties/', views.bounty_list, name='bounty_list'), path('bounties/create/', views.bounty_create, name='bounty_create'), path('bounties//', views.bounty_detail, name='bounty_detail'), path('bounties/offer///', views.bounty_process_offer, name='bounty_process_offer'), path('packs/', views.pack_list, name='pack_list'), path('cart/add-pack//', 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//', views.open_pack, name='open_pack'), path('order//', views.order_detail, name='order_detail'), path('sell/register/', views.seller_register, name='seller_register'), path('sell/dashboard/', views.seller_dashboard, name='seller_dashboard'), path('sell/profile/edit/', views.edit_seller_profile, name='edit_seller_profile'), path('sell/listings/', views.manage_listings, name='manage_listings'), path('sell/listings/card/add/', views.add_card_listing, name='add_card_listing'), path('sell/listings/download-template//', views.download_listing_template, name='download_listing_template'), path('sell/listings/card//edit/', views.edit_card_listing, name='edit_card_listing'), path('sell/listings/card//delete/', views.delete_card_listing, name='delete_card_listing'), path('sell/listings/pack/add/', views.add_pack_listing, name='add_pack_listing'), path('sell/listings/pack//edit/', views.edit_pack_listing, name='edit_pack_listing'), path('sell/listings/pack//delete/', views.delete_pack_listing, name='delete_pack_listing'), path('sell/listings/pack//inventory/', views.manage_pack_inventory, name='manage_pack_inventory'), path('sell/listings/pack//inventory/add/', views.add_virtual_pack_content, name='add_virtual_pack_content'), path('store//', views.seller_profile, name='seller_profile'), path('store//report/', views.report_seller, name='report_seller'), path('platform-admin/revenue/', views.admin_revenue_dashboard, name='admin_revenue_dashboard'), path('terms/', views.terms, name='terms'), ]