Update index.js
Browse files
index.js
CHANGED
|
@@ -436,10 +436,18 @@ async function handleRequest(request) {
|
|
| 436 |
|
| 437 |
generateConfig();
|
| 438 |
|
|
|
|
|
|
|
|
|
|
| 439 |
async function generateConfig(){
|
| 440 |
const express = require('express');
|
| 441 |
const app = express();
|
| 442 |
const port = 7860;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 443 |
|
| 444 |
|
| 445 |
let moduleData = await handleRequest();
|
|
@@ -448,7 +456,10 @@ async function generateConfig(){
|
|
| 448 |
|
| 449 |
app.get('/', function (req, res) {
|
| 450 |
//res.send(moduleData);
|
| 451 |
-
res.send(JSON.stringify(moduleData));
|
|
|
|
|
|
|
|
|
|
| 452 |
});
|
| 453 |
|
| 454 |
|
|
|
|
| 436 |
|
| 437 |
generateConfig();
|
| 438 |
|
| 439 |
+
|
| 440 |
+
|
| 441 |
+
|
| 442 |
async function generateConfig(){
|
| 443 |
const express = require('express');
|
| 444 |
const app = express();
|
| 445 |
const port = 7860;
|
| 446 |
+
|
| 447 |
+
const atob = require('atob');
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
|
| 451 |
|
| 452 |
|
| 453 |
let moduleData = await handleRequest();
|
|
|
|
| 456 |
|
| 457 |
app.get('/', function (req, res) {
|
| 458 |
//res.send(moduleData);
|
| 459 |
+
//res.send(JSON.stringify(moduleData));
|
| 460 |
+
|
| 461 |
+
let decodedData = atob(moduleData);
|
| 462 |
+
res.send(decodedData);
|
| 463 |
});
|
| 464 |
|
| 465 |
|