Skip to content

Commit

Permalink
update api url
Browse files Browse the repository at this point in the history
  • Loading branch information
jolav committed Jan 7, 2025
1 parent c555eae commit d9c682b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions apiDoc/apiDoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@
</span>
<span>
<b>HTTP Request: </b>
<code> GET https://m.d100.top/a/version</code><br>
<code> GET https://api-betazone.glitch.me/version</code><br>
</span>
<span>
<b>Example: </b><br>
<span>&nbsp; -> &nbsp;&nbsp;</span><a href="https://m.d100.top/a/version">https://m.d100.top/a/version</a>
<span>&nbsp; -> &nbsp;&nbsp;</span><a
href="https://api-betazone.glitch.me/version">https://api-betazone.glitch.me/version</a>
</span>
<pre>
{
Expand All @@ -72,15 +73,15 @@
</span>
<span>
<b>HTTP Request: </b>
<code> GET https://m.d100.top/a/ping?min=0&max100</code><br>
<code> GET https://api-betazone.glitch.me/ping?min=0&max100</code><br>
<code>min</code> must be between 0-1000<br>
<code>max</code> between 1-1000<br>
<code>max</code>must be greater than <code>min</code><br>
</span>
<span>
<b>Example: </b><br>
<span>&nbsp; -> &nbsp;&nbsp;</span><a
href="https://m.d100.top/a/ping?min=0&max=1000">https://m.d100.top/a/ping?min=0&max=1000</a>
href="https://api-betazone.glitch.me/ping?min=0&max=1000">https://api-betazone.glitch.me/ping?min=0&max=1000</a>
</span>
<pre>
{
Expand All @@ -99,12 +100,12 @@
</span>
<span>
<b>HTTP Request: </b>
<code> GET https://m.d100.top/a/random/name</code><br>
<code> GET https://api-betazone.glitch.me/random/name</code><br>
</span>
<span>
<b>Example: </b><br>
<span>&nbsp; -> &nbsp;&nbsp;</span><a
href="https://m.d100.top/a/random/name">https://m.d100.top/a/random/name</a>
href="https://api-betazone.glitch.me/random/name">https://api-betazone.glitch.me/random/name</a>
</span>
<pre>
{
Expand Down
2 changes: 1 addition & 1 deletion tetris/tetris.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const tetris = (function () {

const proxy = 'https://api.codetabs.com/v1/proxy/?quest=';
let urlBase = 'https://m.d100.top/a/tetris';
let urlBase = 'https://api-betazone.glitch.me/tetris';
// 127.0.0.1 for testing local frontend with real server backend
if (window.location.hostname === "localhost") {
urlBase = 'http://localhost:3000/tetris';
Expand Down

0 comments on commit d9c682b

Please sign in to comment.