From 8b29f49805d4a651bdd26aa4958a3639760a2f4b Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Tue, 16 Jan 2024 16:01:56 -0300 Subject: [PATCH] fix: unversioned endpoints placement under v0 should be at root --- api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/__init__.py b/api/__init__.py index cd544c0..1ce029b 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -20,7 +20,7 @@ for finder, module_name, ispkg in pkgutil.iter_modules(["api"]): # Create Blueprint groups for each version api = [] for version, blueprints in versioned_blueprints.items(): - if version == "old": + if version == "old" or version == "v0": group = Blueprint.group(*blueprints, url_prefix="/") else: group = Blueprint.group(*blueprints, version=version, url_prefix="/")