urls.py 269 B

123456789101112
  1. from django.urls import include, path
  2. from rest_framework import routers
  3. from .views import APITokenViewSet
  4. router = routers.SimpleRouter()
  5. router.register(r"api-tokens", APITokenViewSet, basename="api-tokens")
  6. urlpatterns = [
  7. path("", include(router.urls)),
  8. ]