text: const express = require("express");
  const morgan = require("morgan");
  const path = require('path');
  const helmet = require("helmet");
  const cors = require("cors");
  const cookieParser = require('cookie-parser');
  const bodyParser = require("body-parser");
  
  require("dotenv").config();
  require("./auth/passport");
  
  // require("./models/user");
  
  const middlewares = require("./middlewares");
  const api = require("./api");
  
  const app = express();
  
  app.use(bodyParser.urlencoded({ extended: true }));
  app.use(bodyParser.json());
  
  app.use(morgan("dev"));
  app.use(helmet());
  app.use(cors());
  app.use(express.json());
  
  app.get("/", (req, res) => {
    res.json({
      message: "🦄🌈✨👋🌎🌍🌏✨🌈🦄",
    });
  });
  
  app.use("/api/v1", api);
  
  app.use(middlewares.notFound);
  app.use(middlewares.errorHandler);
  
  module.exports = app;
  