mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 23:08:12 +08:00
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:
committed by
Charlotte Weaver
parent
b6f946ec8a
commit
0f8d7a55de
@@ -73,7 +73,7 @@
|
||||
<script>
|
||||
window.onload = function () {
|
||||
const ui = SwaggerUIBundle({
|
||||
url: window.location.origin + "/api/swagger.json",
|
||||
url: window.location.href.replace(/\/swagger$/, "") + "/api/swagger.json",
|
||||
dom_id: '#swagger-ui',
|
||||
deepLinking: true,
|
||||
presets: [
|
||||
|
||||
Reference in New Issue
Block a user