mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Use petstore for continuserv swagger docs
Matrix.org's swagger browser is behind https, which means it can't read the swagger from a continuserv on http. Use the petstore instead.
This commit is contained in:
parent
85340a9e00
commit
0cbf533625
|
|
@ -3,7 +3,7 @@
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
var url = new URL(window.location);
|
var url = new URL(window.location);
|
||||||
url.pathname += "api-docs.json";
|
url.pathname += "api-docs.json";
|
||||||
var newLoc = "http://matrix.org/docs/api/client-server/?url=" + encodeURIComponent(url);
|
var newLoc = "http://petstore.swagger.io/?url=" + encodeURIComponent(url);
|
||||||
document.getElementById("apidocs").href = newLoc;
|
document.getElementById("apidocs").href = newLoc;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue