from django.urls import path from crm.views import auth_views, seller_views, customer_views, product_views, wallet_views urlpatterns = [ # Auth path('auth/login/', auth_views.CRMTokenObtainPairView.as_view(), name='token_obtain_pair'), path('auth/me/', auth_views.get_current_admin, name='current_admin'), # Sellers path('sellers/', seller_views.list_sellers, name='list_sellers'), path('sellers//', seller_views.get_seller_detail, name='get_seller_detail'), path('sellers//documents/', seller_views.get_seller_documents, name='get_seller_documents'), path('sellers//approve/', seller_views.approve_seller, name='approve_seller'), path('sellers//reject/', seller_views.reject_seller, name='reject_seller'), path('sellers//suspend/', seller_views.suspend_seller, name='suspend_seller'), path('sellers//reinstate/', seller_views.reinstate_seller, name='reinstate_seller'), path('sellers//reset-password/', seller_views.reset_seller_password, name='reset_seller_password'), # Customers path('customers/', customer_views.list_customers, name='list_customers'), path('customers//', customer_views.get_customer_detail, name='get_customer_detail'), path('customers//suspend/', customer_views.suspend_customer, name='suspend_customer'), path('customers//ban/', customer_views.ban_customer, name='ban_customer'), path('customers//orders//payment/', customer_views.get_payment_status, name='get_payment_status'), path('customers//orders//refund/', customer_views.issue_refund, name='issue_refund'), path('customers//orders//return-pickup/', customer_views.create_return_pickup, name='create_return_pickup'), # Products path('products/', product_views.list_products, name='list_products'), path('products//approve/', product_views.approve_product, name='approve_product'), path('products//hold/', product_views.hold_product, name='hold_product'), path('products//', product_views.delete_product, name='delete_product'), # Wallet / Withdrawals path('wallets/withdrawals/', wallet_views.list_withdrawals, name='list_withdrawals'), path('wallets/withdrawals//approve/', wallet_views.approve_withdrawal, name='approve_withdrawal'), path('wallets/withdrawals//reject/', wallet_views.reject_withdrawal, name='reject_withdrawal'), ]