winofy-backend/apps/stores/urls.py
Ali Asadi 52adc732fa Initial Winofy backend: marketplace core (no payment integration)
Django 6 + DRF resource server against the Gooyal accounts OAuth2 service,
matching the Winsoo ecosystem's conventions. Covers locations, stores,
catalog, cart, checkout/orders (with the multi-store-cart split and the
status stepper), reviews, and notifications, plus a demo-data seed command.

Payment integration (wallet debits, online gateway, seller payouts) is
intentionally left out here — see feature/payment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-10 14:03:15 +03:30

17 lines
722 B
Python

from django.urls import path
from rest_framework.routers import DefaultRouter
from .analytics import SellerAnalyticsView
from .views import SellerStoreView, SellerStoreWorkingHoursView, StoreCategoryViewSet, StoreViewSet
app_name = "stores"
router = DefaultRouter()
router.register('stores', StoreViewSet, basename='store')
router.register('store-categories', StoreCategoryViewSet, basename='store-category')
urlpatterns = router.urls + [
path('seller/store/', SellerStoreView.as_view(), name='seller-store'),
path('seller/store/working-hours/', SellerStoreWorkingHoursView.as_view(), name='seller-store-working-hours'),
path('seller/analytics/', SellerAnalyticsView.as_view(), name='seller-analytics'),
]