text: const router = require('express').Router();
  const moment = require('moment');
  require('moment-duration-format');
  
  const convertToHumanFormat = function (seconds) {
    const duration = moment.duration(seconds, 'seconds');
    const formatted = duration.format('d [days, ]h [hours, ]m [minutes]');
  
    return formatted;
  };
  
  router.get('/', (req, res) => {
    const uptime = Math.floor(process.uptime());
  
    const data = {
      uptime: convertToHumanFormat(uptime),
      status: 'Ok',
      date: new Date()
    };
  
    res.status(200).json(data);
  });
  
  module.exports = router;
  