mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-30 06:27:01 -05:00
12 lines
260 B
Python
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)),
|
|
]
|