text: const auth = require("../../middlewares/authorize");
  const multer = require("../../middlewares/multer-config");
  const bcrypt = require("bcrypt");
  const { User } = require("../../config/dbConfig");
  const jwt = require("jsonwebtoken");
  
  module.exports = (app) => {
      app.post("/api/logout", (req, res) => {
          res.cookie('jwtCookie', ''
              token '', {
                  httpOnly: true,
                  maxAge: parseInt(process.env.MAX_AGE)
              });
          res.status(200).json({ message, data: user, token });
      });
  };