Update srv.js
Browse files
srv.js
CHANGED
|
@@ -20,7 +20,7 @@ async function fetchKey(game) {
|
|
| 20 |
const genTxt = await genRes.text();
|
| 21 |
const k = genTxt.match(/id="gameKey"[^>]*>([^<]+)<\/p>/);
|
| 22 |
//if (!k) throw new Error('key not found in response');
|
| 23 |
-
return
|
| 24 |
}
|
| 25 |
|
| 26 |
app.get('/key', async (req, res) => {
|
|
|
|
| 20 |
const genTxt = await genRes.text();
|
| 21 |
const k = genTxt.match(/id="gameKey"[^>]*>([^<]+)<\/p>/);
|
| 22 |
//if (!k) throw new Error('key not found in response');
|
| 23 |
+
return `https://web.aachann.my.id/Get-key/genkey.php?data=${data}`;
|
| 24 |
}
|
| 25 |
|
| 26 |
app.get('/key', async (req, res) => {
|