import User from "../models/User.js";
import { asyncHandler } from "../utils/helpers.js";

export const getAllMembers = asyncHandler(async (req, res) => {
    const members = await User.find().select("-password");
    res.status(200).json(members);
});