text: const express = require('express');
  const router = new express.Router();
  const Household = require('../models/Household');
  const household_controller = require('../controllers/householdController.js');
  const auth = require('../config/middleware/auth');
  
  //create a household
  router.post('/household', auth, household_controller.create_household);
  
  //get household page from owner id (req.user._id)
  router.get('/household', auth, household_controller.get_household);
  
  //get household name to autocomplete on join household
  router.get('/household-suggestions', auth, household_controller.get_household_suggestions);
  
  //get household members list
  router.get('/household/members/list/:id', auth, household_controller.get_members_list);
  
  //user joins household as member (param is household name
  router.put('/household/:name', auth, household_controller.join_household_from_name);
  
  //user joins household as member (param is household id, user is  req.user.id)
  router.put('/household/join/:id', auth, household_controller.join_household);
  
  //delete household
  router.delete('/household/:id', auth, household_controller.delete_household);
  
  module.exports = router;
  