mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-29 23:27:03 -05:00
13 lines
351 B
Python
13 lines
351 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .views import ListItemViewSet, UserListViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register(r"lists", UserListViewSet, basename="list")
|
|
router.register(r"list-items", ListItemViewSet, basename="list-item")
|
|
|
|
urlpatterns = [
|
|
path("", include(router.urls)),
|
|
]
|