mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-12-10 05:37:46 +01:00
feat: qrcode data checker
This commit is contained in:
@@ -7,13 +7,14 @@ from django.urls import re_path, path
|
||||
from rest_framework import routers
|
||||
|
||||
from .views import UserInformationView
|
||||
from .viewsets import ContentTypeViewSet, UserViewSet
|
||||
from .viewsets import ContentTypeViewSet, UserViewSet, QRCodeVerificationViewSet
|
||||
|
||||
# Routers provide an easy way of automatically determining the URL conf.
|
||||
# Register each app API router and user viewset
|
||||
router = routers.DefaultRouter()
|
||||
router.register('models', ContentTypeViewSet)
|
||||
router.register('user', UserViewSet)
|
||||
router.register('check_qrcode', QRCodeVerificationViewSet, basename='check_qrcode')
|
||||
|
||||
if "activity" in settings.INSTALLED_APPS:
|
||||
from activity.api.urls import register_activity_urls
|
||||
|
||||
Reference in New Issue
Block a user