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 // ---------------------------------------- app.use("/status", require("./routes/status.routes")); // ---------------------------------------- // Starting Server // ---------------------------------------- app.listen(PORT, () => console.log("Server started at port : " + PORT));