backend/links/urls.py

12 lines
250 B
Python
Raw Normal View History

2023-11-22 16:01:05 +03:00
from django.urls import path, include
from rest_framework import routers
from links.views import LinkViewSet
router = routers.DefaultRouter()
router.register(r"", LinkViewSet, basename="links")
urlpatterns = [
path("", include(router.urls))
]