Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -96,9 +96,6 @@ app.get('/headers', async (req, res) => {
|
|
| 96 |
});
|
| 97 |
|
| 98 |
|
| 99 |
-
import fetch from "node-fetch"; // npm install node-fetch@2
|
| 100 |
-
import puppeteer from "puppeteer";
|
| 101 |
-
|
| 102 |
app.get("/api/direct", async (req, res) => {
|
| 103 |
const { url } = req.query;
|
| 104 |
if (!url) return res.status(400).json({ status: false, error: "Missing url parameter" });
|
|
|
|
| 96 |
});
|
| 97 |
|
| 98 |
|
|
|
|
|
|
|
|
|
|
| 99 |
app.get("/api/direct", async (req, res) => {
|
| 100 |
const { url } = req.query;
|
| 101 |
if (!url) return res.status(400).json({ status: false, error: "Missing url parameter" });
|