Spaces:
Paused
Paused
Update server.js
Browse files
server.js
CHANGED
|
@@ -4,7 +4,8 @@ const cheerio = require('cheerio');
|
|
| 4 |
const cors = require('cors');
|
| 5 |
|
| 6 |
const app = express();
|
| 7 |
-
const PORT =
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
app.use(cors());
|
|
@@ -316,9 +317,8 @@ app.get('/', (req, res) => {
|
|
| 316 |
});
|
| 317 |
});
|
| 318 |
|
| 319 |
-
app.listen(PORT, () => {
|
| 320 |
-
console.log(`
|
| 321 |
-
console.log(`Access the API at: http://localhost:${PORT}/api/pixiv`);
|
| 322 |
});
|
| 323 |
|
| 324 |
module.exports = app;
|
|
|
|
| 4 |
const cors = require('cors');
|
| 5 |
|
| 6 |
const app = express();
|
| 7 |
+
const PORT = 7860;
|
| 8 |
+
const HOST = '0.0.0.0';
|
| 9 |
|
| 10 |
|
| 11 |
app.use(cors());
|
|
|
|
| 317 |
});
|
| 318 |
});
|
| 319 |
|
| 320 |
+
app.listen(PORT, HOST, () => {
|
| 321 |
+
console.log(`Running on http://${HOST}:${PORT}`);
|
|
|
|
| 322 |
});
|
| 323 |
|
| 324 |
module.exports = app;
|