Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit e0c2fb7

Browse files
author
RayhanADev
committed
I 👎 Cloudflare :/. Fixed the Repl REST queries.
1 parent 9b18b07 commit e0c2fb7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

src/classes/Repl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ let variables = require('../utils/variables.js');
33

44
async function _getReplId(username, slug) {
55
let info = await variables
6-
.fetch(`https://replit.com/data/repls/@${username}/${slug}`, {
6+
.fetch(`https://staging.replit.com/data/repls/@${username}/${slug}`, {
77
method: 'GET',
88
headers
99
})
10-
.then(res => res.text());
10+
.then(res => res.json());
1111

1212
return info.id;
1313
}
@@ -55,7 +55,7 @@ class Repl {
5555
let slug = this.slug;
5656

5757
let info = await variables
58-
.fetch(`https://replit.com/data/repls/@${username}/${slug}`, {
58+
.fetch(`https://staging.replit.com/data/repls/@${username}/${slug}`, {
5959
method: 'GET',
6060
headers
6161
})

0 commit comments

Comments
 (0)