async index(req, res) {
    try {
      const { status } = req.headers;
      const houseData = await HouseSchema.find({ status });
      res.send(houseData);
    } catch (error) {
      return console.log(`House Get error: ${error}`);
    }
  }
// Get houses with filter true or false
Get houses with filter true or false
Get houses with filter true or false
async index(req, res) {
    try {
      const { status } = req.headers;
      const houseData = await HouseSchema.find({ status });
      res.send(houseData);
    } catch (error) {
      return console.log(`House Get error: ${error}`);
    }
  }
async index ( req , res ) { try { const { status } = req . headers ; const houseData = await HouseSchema . find ( { status } ) ; res . send ( houseData ) ; } catch ( error ) { return console . log ( ` ${ error } ` ) ; } }
Get houses with filter true or false
Get houses with filter true or false