Skip to content

Commit

Permalink
client: add -preview subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Aug 31, 2021
1 parent e78a514 commit 6f54a62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
}
VALID_URLS = {f"http://localhost:{p}" for p in LOCAL_STACK.values()} # AWS Fargate Task
VALID_URLS |= {f"http://{h}:{p}" for h, p in LOCAL_STACK.items()} # local docker-compose stack
VALID_URLS |= {f"https://{n}-api.materialsproject.org" for n in SUBDOMAINS}
VALID_URLS |= {
f"https://{n}-api{m}.materialsproject.org"
for n in SUBDOMAINS for m in ["", "-preview"]
}
VALID_URLS |= {f"http://localhost.{n}-api.materialsproject.org" for n in SUBDOMAINS}
SUPPORTED_FILETYPES = (Gz, Jpeg, Png, Gif, Tiff)
SUPPORTED_MIMES = [t().mime for t in SUPPORTED_FILETYPES]
Expand Down

0 comments on commit 6f54a62

Please sign in to comment.