Files
thrillwiki_django_no_react/backend/apps/media/urls.py

12 lines
260 B
Python

from django.urls import include, path
from rest_framework.routers import DefaultRouter
from .views import PhotoViewSet
router = DefaultRouter()
router.register(r"photos", PhotoViewSet, basename="photo")
urlpatterns = [
path("", include(router.urls)),
]