urls.py 268 B

1234567891011
  1. from django.urls import path, include
  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. ]