Files
2024-11-27 13:18:16 +01:00

14 lines
408 B
Python
Executable File

from django.urls import path
from rest_framework import routers
from outbo.apps.authentication.views import ObtainAuthToken
from outbo.apps.authentication.viewsets import UserViewSet
app_name = "authentication"
router = routers.SimpleRouter()
router.register(prefix="users", viewset=UserViewSet)
view_urls = [path("token/", ObtainAuthToken.as_view(), name="token")]
urlpatterns = view_urls + router.urls