mirror of
https://github.com/simonw/datasette.git
synced 2026-09-29 13:24:07 +02:00
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:
parent
13dc7a08b7
commit
5cb2bc6909
4 changed files with 17 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue