Add continuserv index
Oops, forgot this when adding support for the API docs to continuserv in
bfb65d8
.
This commit is contained in:
parent
d41438605d
commit
2ec43a5948
1 changed files with 15 additions and 0 deletions
15
scripts/continuserv/index.html
Normal file
15
scripts/continuserv/index.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<head>
|
||||
<script>
|
||||
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);
|
||||
document.getElementById("apidocs").href = newLoc;
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body><ul>
|
||||
<li><a id="apidocs">api docs</a></li>
|
||||
<li><a href="index.html">spec</a></li>
|
||||
</ul>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue