devicehub-django/snapshot/urls.py

11 lines
258 B
Python
Raw Normal View History

2024-06-12 07:32:49 +00:00
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from snapshot.views import SnapshotViewSet
router = DefaultRouter()
router.register(r'snapshots', SnapshotViewSet)
urlpatterns = [
path('', include(router.urls)),
]