text: const express = require('express');
  
  const publicRouter = express.Router();
  
  /**
   publicRouter.route('/user')
   .all((req, res, next) => {
          console.log('I Catch all method from here');
          next();
      })
   .get((req, res) => {
          res.send('GET Body');
      })
   .post((req, res) => {
          res.send('POST Body');
      })
   .put((req, res) => {
          res.send('PUT Body');
      })
   .delete((req, res) => {
          res.send('DELETE Body');
      })
   */
  
  // publicRouter.use((req, res, next) => {
  //     console.log("Use Router Use");
  //     next();
  // })
  
  const log = (req, res, next) => {
      console.log("All Log Catch From Here");
      next();
  }
  
  // publicRouter.all('*', log);
  
  // publicRouter.param('user', (req, res, next, id) => {
  //     req.user = id === '1' ? 'SOURAV' : 'Anonymous';
  //     console.log('I am call once time');
  //     next();
  // });
  
  /**
   publicRouter.param((param, option) => (req, res, next, value) => {
      if (value === option) {
          next();
      } else {
          res.sendStatus(403);
      }
  })
  
   publicRouter.param('user', '10');
   */
  
  // publicRouter.get('/:user', (req, res, next) => {
  //     console.log('Another call same route');
  //     next();
  // })
  
  // publicRouter.get('/:user', (req, res) => {
  //     // res.send(`Hello ${req.user}`);
  //     res.send(`Hello SOURAV`);
  // })
  
  publicRouter.get('/ab?cd', (req, res) => {
      res.send("Router only match ACD or ABCD");
  })
  
  publicRouter.all('*', log);
  
  publicRouter.get('/login', (req, res) => {
      res.send("Public Login From Public Router");
  })
  
  module.exports = publicRouter;
  