exploring documents statuses

pull/1/head
Vyacheslav N. Boyko 2022-03-15 13:58:00 +03:00
parent 04f19b3407
commit 2b5bf1fa75
1 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,9 @@
initRedoc();
}
var api_url = 'https://profee-waas.github.io/pf-waas-api/waas-api.json';
var isLocalhost = location.hostname === "localhost" || location.hostname === "127.0.0.1";
var api_url = isLocalhost ? '/waas-api.json' : 'https://profee-waas.github.io/pf-waas-api/waas-api.json';
function initRedoc() {
Redoc.init(api_url, {"pathInMiddlePanel":true});
}