import express from "express"; // ---------------------------------------- // Backend configuration // ---------------------------------------- const PORT = 5000; const app = express(); // ---------------------------------------- // Middleware configuration // ---------------------------------------- app.use(express.json()); app.use(express.urlencoded( {extended: false })); // ---------------------------------------- // Routes import // ---------------------------------------- import statusRoutes from "./routes/status.routes"; import purchaseRoutes from "./routes/purchase.routes"; app.use("/status", statusRoutes); app.use("/new-purchase", purchaseRoutes); // ---------------------------------------- // Starting Server // ---------------------------------------- app.listen(PORT, () => console.log("Server started at port : " + PORT));