This commit is contained in:
baflo 2023-12-22 20:30:33 +01:00
parent cb1dc9f2cc
commit 00b5d47ec5

View File

@ -5,7 +5,8 @@ from django.contrib.auth.decorators import login_required
from django.urls import path
from django.urls import re_path
from django.utils.translation import gettext_lazy as _
from django.views.decorators.csrf import csrf_exempt, ensure_csrf_cookie
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.csrf import ensure_csrf_cookie
from django.views.generic import RedirectView
from rest_framework.authtoken import views
from rest_framework.routers import DefaultRouter
@ -178,7 +179,11 @@ urlpatterns = [
# login, logout
path("accounts/", include("django.contrib.auth.urls")),
# Root of the Frontend
re_path(r".*", login_required(ensure_csrf_cookie(IndexView.as_view())), name="base"),
re_path(
r".*",
login_required(ensure_csrf_cookie(IndexView.as_view())),
name="base",
),
]