Add dotenv support and bulk SMS endpoint

- Integrated dotenv for environment variable management.
- Updated queueWorker to use WORKER_INTERVAL from .env or default to 5 seconds.
- Added a new bulk SMS endpoint to queue multiple messages in a single request, with validation and transaction handling.
- Updated package.json and package-lock.json to include dotenv dependency.
This commit is contained in:
Mekan1206
2026-06-04 19:34:06 +05:00
parent 87b3715774
commit 1907be7c6f
6 changed files with 59 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
require('dotenv').config();
const express = require('express');
const http = require('http');
const socketIo = require('socket.io');