exemption for API v2 endpoints in the gating logic condition

This commit is contained in:
ChrispyBacon-dev 2025-09-23 09:58:59 +02:00
parent 74aec141d8
commit 7ec2a29930

View file

@ -95,7 +95,7 @@ def gating_logic():
if not is_configured:
if request.endpoint and not request.endpoint.startswith('setup.') and request.endpoint != 'static':
if request.endpoint and not request.endpoint.startswith('setup.') and request.endpoint != 'static' and not request.endpoint.startswith('api_v2.'):
try:
if getattr(current_app, 'import_from_env', False):