<reponame>EgehanGundogdu/drf-test-driven-development-exercies<gh_stars>0
from django.urls import path
from rest_framework.authtoken.views import ObtainAuthToken
from .api import CreateUser, ManageUser
from .serializers import AuthTokenSerializer
app_name = "user"

urlpatterns = [
    path('create/', CreateUser.as_view(), name="create"),
    path(
        'obtain-token/',
        ObtainAuthToken.as_view(serializer_class=AuthTokenSerializer),
        name="obtain-token"),
    path('me/', ManageUser.as_view(), name='me')
]

from django.urls import path
from rest_framework.authtoken.views import ObtainAuthToken
from .api import CreateUser, ManageUser
from .serializers import AuthTokenSerializer
app_name = "user"

urlpatterns = [
    path('create/', CreateUser.as_view(), name="create"),
    path(
        'obtain-token/',
        ObtainAuthToken.as_view(serializer_class=AuthTokenSerializer),
        name="obtain-token"),
    path('me/', ManageUser.as_view(), name='me')
]