main.ts
1 import express from "express"; 2 import siwsHandler from "./handlers/siws"; 3 import snsHandler from "./handlers/sns"; 4 5 const app = express(); 6 const port = process.env.PORT || "3000"; 7 8 app.use(express.json()); 9 10 app.get("/sns/:address", snsHandler); 11 app.post("/siws", siwsHandler); 12 13 app.listen(port, () => { 14 console.log(`⚡️[server]: Server is running at http://localhost:${port}`); 15 });