use cfg for port
This commit is contained in:
parent
fdbd809920
commit
1614905552
3
index.js
3
index.js
|
@ -11,7 +11,6 @@ const hook = new Discord.WebhookClient({ url: config.webhook }, {
|
||||||
});
|
});
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 3000;
|
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
app.post('/sms', async (req, res) => {
|
app.post('/sms', async (req, res) => {
|
||||||
|
@ -71,6 +70,6 @@ app.post('/sms', async (req, res) => {
|
||||||
res.send("OK");
|
res.send("OK");
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(port, () => {
|
app.listen(config.port, () => {
|
||||||
console.log(`Listening on port ${port}`);
|
console.log(`Listening on port ${port}`);
|
||||||
});
|
});
|
Loading…
Reference in a new issue