mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 02:11:08 -05:00
20 lines
506 B
Python
20 lines
506 B
Python
"""
|
|
Media API URL configuration.
|
|
Centralized from apps.media.urls
|
|
"""
|
|
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from . import views
|
|
|
|
# Create router for ViewSets
|
|
router = DefaultRouter()
|
|
router.register(r"photos", views.PhotoViewSet, basename="photo")
|
|
|
|
urlpatterns = [
|
|
# Photo upload endpoint
|
|
path("upload/", views.PhotoUploadAPIView.as_view(), name="photo_upload"),
|
|
# Include router URLs for photo management
|
|
path("", include(router.urls)),
|
|
]
|