from django.urls import path, include
from rest_framework_jwt.views import obtain_jwt_token
from rest_framework.routers import DefaultRouter

from .views import NoteViewSet

app_name = 'api'

router = DefaultRouter(trailing_slash=False)
router.register('notes', NoteViewSet)

urlpatterns = [
    path('jwt-auth/', obtain_jwt_token),
    path('', include(router.urls)),
]

[((9, 9, 9, 44), 'rest_framework.routers.DefaultRouter', 'DefaultRouter', (), '', False, 'from rest_framework.routers import DefaultRouter\n'), ((13, 4, 13, 39), 'django.urls.path', 'path', ({(13, 9, 13, 20): '"""jwt-auth/"""', (13, 22, 13, 38): 'obtain_jwt_token'}, {}), "('jwt-auth/', obtain_jwt_token)", False, 'from django.urls import path, include\n'), ((14, 13, 14, 33), 'django.urls.include', 'include', ({(14, 21, 14, 32): 'router.urls'}, {}), '(router.urls)', False, 'from django.urls import path, include\n')]