Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -125,9 +125,8 @@ app.get("/", (req, res) => {
|
|
| 125 |
app.post("/eval", async (req, res) => {
|
| 126 |
const { code } = req.body;
|
| 127 |
const { responseType = "text" } = req.query;
|
| 128 |
-
|
| 129 |
let __dirname = path.dirname(fileURLToPath(import.meta.url));
|
| 130 |
-
let require = createRequire(__dirname)
|
| 131 |
|
| 132 |
let _return;
|
| 133 |
try {
|
|
|
|
| 125 |
app.post("/eval", async (req, res) => {
|
| 126 |
const { code } = req.body;
|
| 127 |
const { responseType = "text" } = req.query;
|
|
|
|
| 128 |
let __dirname = path.dirname(fileURLToPath(import.meta.url));
|
| 129 |
+
let require = createRequire(__dirname);
|
| 130 |
|
| 131 |
let _return;
|
| 132 |
try {
|