text: const express = require('express');
  const authRoute = require('./auth.route');
  const userRoute = require('./user.route');
  const profileRoute = require('./profile.route');
  const payRoute = require('./pay.route');
  const docsRoute = require('./docs.route');
  const config = require('../../config/config');
  // const { checkJwt } = require('../../middlewares/jwt-auth');
  
  const router = express.Router();
  
  const defaultRoutes = [
    {
      path: '/auth',
      route: authRoute,
    },
    {
      path: '/profile',
      route: profileRoute,
    },
    {
      path: '/users',
      route: userRoute,
    },
    {
      path: '/pay',
      route: payRoute,
    },
  ];
  
  const devRoutes = [
    // routes available only in development mode
    {
      path: '/docs',
      route: docsRoute,
    },
  ];
  
  defaultRoutes.forEach((route) => {
    router.use(route.path, route.route);
  });
  
  /* istanbul ignore next */
  if (config.env === 'development') {
    devRoutes.forEach((route) => {
      router.use(route.path, route.route);
    });
  }
  
  module.exports = router;
  