datasette.client now applies base_url, closes #1026

This commit is contained in:
Simon Willison 2020-10-31 12:29:42 -07:00
commit 84bc7244c1
5 changed files with 56 additions and 13 deletions

View file

@ -257,6 +257,9 @@ def register_routes():
)
)
def asgi_scope(scope):
return Response.json(scope, default=repr)
return [
(r"/one/$", one),
(r"/two/(?P<name>.*)$", two),
@ -267,6 +270,7 @@ def register_routes():
(r"/not-async/$", not_async),
(r"/add-message/$", add_message),
(r"/render-message/$", render_message),
(r"/asgi-scope$", asgi_scope),
]