mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed remaining places that needed datasette.urls, closes #1025
This commit is contained in:
parent
0d1763fb2f
commit
091441a444
8 changed files with 15 additions and 14 deletions
|
|
@ -457,10 +457,12 @@ def serve(
|
|||
|
||||
# Start the server
|
||||
if root:
|
||||
url = "http://{}:{}/-/auth-token?token={}".format(host, port, ds._root_token)
|
||||
url = "http://{}:{}{}?token={}".format(
|
||||
host, port, ds.urls.path("-/auth-token"), ds._root_token
|
||||
)
|
||||
print(url)
|
||||
else:
|
||||
url = "http://{}:{}/".format(host, port)
|
||||
url = "http://{}:{}{}".format(host, port, ds.urls.instance())
|
||||
if open_browser:
|
||||
webbrowser.open(url)
|
||||
uvicorn.run(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue