Fix /-/tables endpoint: add .json support and correct response format

This commit is contained in:
Simon Willison 2025-10-23 15:28:37 -07:00
commit 8e47f99874
2 changed files with 20 additions and 15 deletions

View file

@ -1885,7 +1885,7 @@ class Datasette:
)
add_route(
TablesView.as_view(self),
r"/-/tables$",
r"/-/tables(\.(?P<format>json))?$",
)
add_route(
LogoutView.as_view(self),