"""
URL configuration for sync_backend project.

API Endpoints:
- /api/auth/ - Authentication (login, register, profile)
- /api/influencers/ - Influencer profiles and Instagram connection
- /api/businesses/ - Business profiles and influencer matching
- /admin/ - Django admin panel
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # Admin
    path('admin/', admin.site.urls),

    # API endpoints
    path('api/auth/', include('accounts.urls')),
    path('api/influencers/', include('influencers.urls')),
    path('api/businesses/', include('businesses.urls')),
]

# Serve media files in development
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
