Пример #1
0
from django.urls import path
from user.views import CreateUserView
from user.views import CreateTokenView
from user.views import ManageUserView

app_name = 'user'

urlpatterns = [
    path(
        'create/',
        CreateUserView.as_view(),
        name='create',
    ),
    path(
        'token/',
        CreateTokenView.as_view(),
        name='token',
    ),
    path(
        'me/',
        ManageUserView.as_view(),
        name='me',
    ),
]
Пример #2
0
from django.urls import path

from user.views import CreateUserView, CreateTokenView, ManageUserView

app_name = 'user'

urlpatterns = [
    path('create/', CreateUserView.as_view(), name='create'),
    path('token/', CreateTokenView.as_view(), name='token'),
    path('me/', ManageUserView.as_view(), name='me'),
]
Пример #3
0
from django.urls import path

from user.views import CreateUserView, CreateTokenView, ManageUserView

app_name = "user"
urlpatterns = [
    path("create/", CreateUserView.as_view(), name="create"),
    path("token/", CreateTokenView.as_view(), name="token"),
    path("me/", ManageUserView.as_view(), name="me")
]