ungleich-otp/ungleichotpserver/urls.py

15 lines
466 B
Python
Raw Normal View History

2018-11-17 10:39:42 +00:00
from django.contrib import admin
from django.urls import path
from django.conf.urls import url, include
2018-11-18 12:42:16 +00:00
from rest_framework import routers
from otpauth.views import OTPVerifyViewSet
2018-11-17 17:48:12 +00:00
router = routers.DefaultRouter()
2018-11-18 12:42:16 +00:00
router.register(r'ungleichotp', OTPVerifyViewSet, basename='ungleichotp')
2018-11-17 10:39:42 +00:00
2018-10-26 18:58:05 +00:00
urlpatterns = [
path('admin/', admin.site.urls),
url(r'^', include(router.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
2018-10-26 18:58:05 +00:00
]