[Feature] Legacy API Layer (#80)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#80
This commit is contained in:
2025-09-03 01:35:51 +12:00
parent 4e02910c62
commit 4158bd36cb
6 changed files with 785 additions and 5 deletions

View File

@ -2,7 +2,6 @@ from django.conf import settings
from django.shortcuts import redirect
from django.urls import reverse
class LoginRequiredMiddleware:
def __init__(self, get_response):
self.get_response = get_response
@ -11,6 +10,7 @@ class LoginRequiredMiddleware:
reverse('logout'),
reverse('admin:login'),
reverse('admin:index'),
'/api/legacy/'
] + getattr(settings, 'LOGIN_EXEMPT_URLS', [])
def __call__(self, request):