From 86b9de3d30284d42ad06c5ce4f1ee2fbcd5eff91 Mon Sep 17 00:00:00 2001 From: Xavier Fiechter Date: Sat, 4 Feb 2023 12:11:57 +0100 Subject: [PATCH] . --- labellabor/urls.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/labellabor/urls.py b/labellabor/urls.py index fd4f22e..9aea1bc 100644 --- a/labellabor/urls.py +++ b/labellabor/urls.py @@ -4,15 +4,31 @@ from django.contrib.auth.views import LogoutView from django.urls import include, path from two_factor.urls import urlpatterns as tf_urls - + +from labelbase import api from .views import ( ExampleSecretView, LabelbaseView, HomeView, RegistrationCompleteView, RegistrationView ) from userprofile.views import ProfileView +""" +from django.urls import path +from rest_framework.urlpatterns import format_suffix_patterns + urlpatterns = [ + #path('api/v1/', api.labelbase), + +] + +urlpatterns = format_suffix_patterns(urlpatterns) + +""" +urlpatterns = [ + + path('api/v1/labelbase//label//', api.label), + path( '', HomeView.as_view(), @@ -31,8 +47,6 @@ urlpatterns = [ name='labelbase', ), - - path( 'account/logout/', LogoutView.as_view(),