diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:39:11 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:39:11 +0000 |
| commit | 296cb7cc2b1c06282e5c03a92ec7ba46b25cb288 (patch) | |
| tree | f87f44e5797b508280208ccb2274bf1a0aed1dc6 /src/app.js | |
| parent | dc965e47ad8c256bed3776ea0ab4e3c6ec7ad263 (diff) | |
Loads .env
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,9 +1,11 @@ const bodyParser = require('body-parser'); +const dotenv = require('dotenv'); const express = require('express'); const { isSubscribed, getSubscriptions, getSubscriptionFromNumber, subscribe, load: loadData } = require('./db'); const { sendTextMessage } = require('./sendTextMessage'); const { MessagingResponse } = require('twilio').twiml; +dotenv.config(); loadData(); const app = express(); |
