Homepage JSON returns databases as a list

/.json previously returned databases as an object keyed by database
name, unlike /-/databases.json and every other collection in the API.
It now returns a list of database objects. The HTML template already
consumed the list. This endpoint remains undocumented.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
Claude 2026-07-04 16:45:19 +00:00
commit 5cb2bc6909
No known key found for this signature in database
4 changed files with 17 additions and 13 deletions

View file

@ -152,7 +152,7 @@ class IndexView(BaseView):
json.dumps(
{
"ok": True,
"databases": {db["name"]: db for db in databases},
"databases": databases,
"metadata": await self.ds.get_instance_metadata(),
},
cls=CustomJSONEncoder,