Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Remove "api" entry from "services" and increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Apr 13, 2021
1 parent 84f6df8 commit cd2c8c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@

ABOUT_URL = os.environ.get("ABOUT_URL", "https://www.dandiarchive.org").rstrip("/")

PUBLISH_API_URL = os.environ.get(
"PUBLISH_API_URL", "https://publish.dandiarchive.org/api"
).rstrip()

JUPYTERHUB_URL = os.environ.get(
"JUPYTERHUB_URL", "https://hub.dandiarchive.org"
).rstrip()
Expand Down Expand Up @@ -164,13 +160,12 @@ async def goto_dandiset_version(request, dataset, version):
async def server_info(request):
return response.json(
{
"version": "1.0.0",
"version": "1.1.0",
"cli-minimal-version": "0.6.0",
"cli-bad-versions": [],
"services": {
"girder": {"url": GIRDER_URL},
"webui": {"url": GUI_URL},
"api": {"url": PUBLISH_API_URL},
"jupyterhub": {"url": JUPYTERHUB_URL},
},
},
Expand Down
3 changes: 1 addition & 2 deletions test_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ def test_server_info():
_, r = app.test_client.get("/server-info")
r.raise_for_status()
assert r.json == {
"version": "1.0.0",
"version": "1.1.0",
"cli-minimal-version": "0.6.0",
"cli-bad-versions": [],
"services": {
"girder": {"url": "https://girder.dandiarchive.org"},
"webui": {"url": "https://gui.dandiarchive.org"},
"api": {"url": "https://publish.dandiarchive.org/api"},
"jupyterhub": {"url": "https://hub.dandiarchive.org"},
},
}

0 comments on commit cd2c8c6

Please sign in to comment.