1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Token authentication

This commit is contained in:
Yohann D'ANELLO
2020-02-17 19:25:33 +01:00
parent f3f13c5153
commit 55977bcbe7
5 changed files with 31 additions and 2 deletions

View File

@ -5,6 +5,7 @@
from django.conf.urls import url, include
from django.contrib.auth.models import User
from rest_framework import routers, serializers, viewsets
from rest_framework.authtoken import views as token_views
from .activity.urls import register_activity_urls
from .members.urls import register_members_urls
@ -49,5 +50,5 @@ register_note_urls(router, 'note')
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
url('^', include(router.urls)),
url('^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
url('^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]