fix: unversioned endpoints placement under v0 should be at root

This commit is contained in:
Alexandre Teles 2024-01-16 16:01:56 -03:00
parent 80cdb3be6a
commit 8b29f49805
No known key found for this signature in database
GPG Key ID: DB1C7FA46B1007F0

View File

@ -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="/")