import express from "express"; import * as expressHbs from "express-handlebars"; import path from "path"; import { Sms } from "./sms"; import { WhatsApp, WhatsappAccountType, WhatsappVendor } from "./whatsapp"; import { H2I } from "./h2i"; const app = express(); const hbs = expressHbs.create({ helpers: {}, defaultLayout: "layout", partialsDir: ["src/views/partials"], extname: ".hbs", }); app.engine(".hbs", hbs.engine); app.set("view engine", ".hbs"); const viewsDir = path.join(__dirname, "views"); app.set("views", viewsDir); const staticDir = path.join(__dirname, "public"); app.use(express.static(staticDir)); app.get('/',async (req,res)=>{ res.send({ status:'success' }); }) app.listen(9000, async () => { console.log('Server started on port: ' + 9000); });