winofy-backend/config/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

22 lines
1 KiB
Python

from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
urlpatterns = [
path("api/admin/", admin.site.urls),
path("api/", include("apps.core.urls")),
path('api/oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')),
path("api/v1/", include("apps.locations.urls")),
path("api/v1/", include("apps.stores.urls")),
path("api/v1/", include("apps.catalog.urls")),
path("api/v1/", include("apps.orders.urls")),
path("api/v1/", include("apps.reviews.urls")),
path("api/swagger/schema/", SpectacularAPIView.as_view(), name="schema"),
path("api/swagger/swagger-ui/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
path("api/swagger/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)