From 0cbf533625b5c21b11a83134338c5b0a393976f7 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 14 Nov 2017 13:02:43 +0000 Subject: [PATCH] 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. --- scripts/continuserv/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/continuserv/index.html b/scripts/continuserv/index.html index f698c5b3..24ed7ecb 100644 --- a/scripts/continuserv/index.html +++ b/scripts/continuserv/index.html @@ -3,7 +3,7 @@ window.onload = function() { var url = new URL(window.location); 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; };