Update server.js
Browse files
server.js
CHANGED
|
@@ -6,7 +6,8 @@ import ytdl from "@distube/ytdl-core";
|
|
| 6 |
import yts from "youtube-yts";
|
| 7 |
|
| 8 |
const app = express();
|
| 9 |
-
const PORT =
|
|
|
|
| 10 |
|
| 11 |
// Middleware
|
| 12 |
app.use(bodyParser.json());
|
|
@@ -55,7 +56,7 @@ app.get("/download", async (req, res) => {
|
|
| 55 |
}
|
| 56 |
});
|
| 57 |
|
| 58 |
-
|
| 59 |
-
app.listen(PORT, () => {
|
| 60 |
-
console.log(`
|
| 61 |
-
});
|
|
|
|
| 6 |
import yts from "youtube-yts";
|
| 7 |
|
| 8 |
const app = express();
|
| 9 |
+
const PORT = 7860;
|
| 10 |
+
const HOST = '0.0.0.0';
|
| 11 |
|
| 12 |
// Middleware
|
| 13 |
app.use(bodyParser.json());
|
|
|
|
| 56 |
}
|
| 57 |
});
|
| 58 |
|
| 59 |
+
|
| 60 |
+
app.listen(PORT, HOST, () => {
|
| 61 |
+
console.log(`Running on http://${HOST}:${PORT}`);
|
| 62 |
+
});
|