const express = require("express");
const app = express();
app.get("/", (req, res) => {
const { previous, lang, token } = req.query;
getServiceStatus((status) => {
res.send(`
Service Status
${status}
`);
});
});
getServiceStatus = (callback) => {
const status = "All systems are running.";
callback(status);
};
app.listen(3000, () => {
console.log("Server listening on port 3000");
});