text: const express = require("express");
  const bodyParser = require("body-parser");
  
  const PORT = process.env.PORT || 5000;
  const app = express();
  
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: true }));
  
  //CORS Middleware
  app.use(function (req, res, next) {
    //Enabling CORS
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT");
    res.header(
      "Access-Control-Allow-Headers",
      "Origin, X-Requested-With, contentType,Content-Type, Accept, Authorization"
    );
    next();
  });
  
  app.use("/", require("./routes")),
    app.listen(PORT, () => {
      console.log("Working on port : " + PORT);
    });
  