mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-12-10 05:37:46 +01:00
feat: distribute qrcode image over api/me/qrcode
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include
|
||||
from django.urls import re_path
|
||||
from django.urls import re_path, path
|
||||
from rest_framework import routers
|
||||
|
||||
from .views import UserInformationView
|
||||
@@ -61,6 +61,7 @@ app_name = 'api'
|
||||
# Additionally, we include login URLs for the browsable API.
|
||||
urlpatterns = [
|
||||
re_path('^', include(router.urls)),
|
||||
re_path('^me/', UserInformationView.as_view()),
|
||||
path('me/', UserInformationView.as_view({'get': 'retrieve'})),
|
||||
path('me/qrcode/', UserInformationView.as_view({'get': 'qrcode'})),
|
||||
re_path('^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user