|
|
|
@ -21,11 +21,12 @@ from django.conf.urls import url, include
|
|
|
|
|
from django.contrib.auth.models import User |
|
|
|
|
from rest_framework import routers, serializers, viewsets |
|
|
|
|
from otpauth.models import OTPSeed |
|
|
|
|
from otpauth.views import VerifyViewSet |
|
|
|
|
from otpauth.views import ModelVerifyViewSet, VerifyViewSet |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
router = routers.DefaultRouter() |
|
|
|
|
router.register(r'ungleichotp', VerifyViewSet, basename='ungleichotp') |
|
|
|
|
router.register(r'ungleichotpv2', ModelVerifyViewSet, basename='ungleichotpv2') |
|
|
|
|
|
|
|
|
|
print(router.urls) |
|
|
|
|
|
|
|
|
|