mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-22 19:06:41 +03:00
30 lines
740 B
Python
30 lines
740 B
Python
from django.urls import include, path
|
|
from rest_framework.authtoken.views import obtain_auth_token
|
|
|
|
from akarpov.users.api.views import UserRegisterViewSet
|
|
|
|
urlpatterns_v1 = [
|
|
path(
|
|
"auth/",
|
|
include(
|
|
[
|
|
path(
|
|
"register/", UserRegisterViewSet.as_view(), name="user_register_api"
|
|
),
|
|
path("token/", obtain_auth_token),
|
|
]
|
|
),
|
|
),
|
|
path(
|
|
"users/",
|
|
include("akarpov.users.api.urls"),
|
|
),
|
|
path("file/", include("akarpov.files.api.urls")),
|
|
path(
|
|
"tools/",
|
|
include([path("qr/", include("akarpov.tools.qr.api.urls"))]),
|
|
),
|
|
]
|
|
|
|
urlpatterns = [path("v1/", include(urlpatterns_v1))]
|