text: const router = require('express').Router();
  const { logger } = require('../../lib/logger');
  const auth = require('../../middleware/check-auth');
  const s3File = require('../../lib/reads3File');
  
  router.post('/distWise', auth.authController, async (req, res) => {
      try {
          logger.info('---composite report dist wise api ---');
          let fileName = `composite/comp_district.json`
          var data = await s3File.readS3File(fileName);
  
          logger.info('--- composite dist wise api response sent ---');
          res.status(200).send(data);
  
      } catch (e) {
          logger.error(`Error :: ${e}`)
          res.status(500).json({ errMessage: "Internal error. Please try again!!" });
      }
  });
  
  module.exports = router;