mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 16:51:07 -05:00
19 lines
543 B
Python
19 lines
543 B
Python
"""
|
|
Accounts API URL Configuration
|
|
"""
|
|
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from . import views
|
|
|
|
# Create router and register ViewSets
|
|
router = DefaultRouter()
|
|
router.register(r"profiles", views.UserProfileViewSet, basename="user-profile")
|
|
router.register(r"toplists", views.TopListViewSet, basename="top-list")
|
|
router.register(r"toplist-items", views.TopListItemViewSet, basename="top-list-item")
|
|
|
|
urlpatterns = [
|
|
# Include router URLs for ViewSets
|
|
path("", include(router.urls)),
|
|
]
|