Initial commit - clean project structure
This commit is contained in:
45
config/urls.py
Normal file
45
config/urls.py
Normal file
@@ -0,0 +1,45 @@
|
||||
"""
|
||||
مسیرهای اصلی پروژهی Tadrisino — فاز ۱ (۴ از ۱۱ اپ)
|
||||
|
||||
هر اپ زیر پیشوند /api/ خودش mount شده. مسیرهای هر endpoint دقیقاً طبق
|
||||
سند «Endpointهای API» طراحیشده تا مقایسه با Swagger راحت باشه.
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from drf_spectacular.views import (
|
||||
SpectacularAPIView,
|
||||
SpectacularRedocView,
|
||||
SpectacularSwaggerView,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
# OpenAPI schema + Swagger UI + Redoc
|
||||
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
|
||||
path('api/docs/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
|
||||
path('api/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
|
||||
|
||||
# اپهای فاز ۱
|
||||
path('api/', include('accounts.urls')),
|
||||
path('api/', include('content.urls')),
|
||||
path('api/', include('progress.urls')),
|
||||
path('api/', include('ai_tutor.urls')),
|
||||
|
||||
# اپهای فاز ۲ / بخش ۱ (subscription, payment, discount)
|
||||
path('api/', include('subscription.urls')),
|
||||
path('api/', include('payment.urls')),
|
||||
path('api/', include('discount.urls')),
|
||||
|
||||
# اپهای فاز ۲ / بخش ۲ (notifications)
|
||||
path('api/', include('notifications.urls')),
|
||||
|
||||
# اپهای فاز ۲ / بخش ۳ (affiliate)
|
||||
path('api/', include('affiliate.urls')),
|
||||
|
||||
# اپهای فاز ۲ / بخش ۴ (support)
|
||||
path('api/', include('support.urls')),
|
||||
|
||||
# اپهای فاز ۲ / بخش ۵ (family)
|
||||
path('api/', include('family.urls')),
|
||||
]
|
||||
Reference in New Issue
Block a user