Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in new issue
Block a user