14 lines
408 B
Python
Executable File
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
|