akarpov/config/api_router.py

30 lines
740 B
Python
Raw Normal View History

2022-11-23 11:41:43 +03:00
from django.urls import include, path
from rest_framework.authtoken.views import obtain_auth_token
2023-01-11 13:48:55 +03:00
from akarpov.users.api.views import UserRegisterViewSet
2022-11-23 11:41:43 +03:00
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"),
),
2023-01-15 12:31:15 +03:00
path("file/", include("akarpov.files.api.urls")),
path(
"tools/",
include([path("qr/", include("akarpov.tools.qr.api.urls"))]),
2022-11-23 11:41:43 +03:00
),
]
urlpatterns = [path("v1/", include(urlpatterns_v1))]