mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
11 lines
325 B
Python
11 lines
325 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views import AdventureViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'adventures', AdventureViewSet, basename='adventures')
|
|
|
|
urlpatterns = [
|
|
# Include the router under the 'api/' prefix
|
|
path('', include(router.urls)),
|
|
]
|