Set API path based on access address (#568)

* Make api paths relative

* Remove request import

* Set publicPath to be relative
This commit is contained in:
Isaac Virshup
2019-02-11 09:01:37 -08:00
committed by Charlotte Weaver
parent b6f946ec8a
commit 0f8d7a55de
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
<script type="text/javascript">
window.CELLXGENE = {};
window.CELLXGENE.API = {
prefix: "{{ prefix | safe }}",
prefix: window.location.href + "api/",
version: "v0.2/"
};
</script>