text: import { Router } from 'express';
  
  const router = Router();
  
  router.get('/', (req, res) => {
    res.render('index');
  });
  
  router.get('*', (req, res) => {
    res.status(404).json({ code: 404, message: 'Endpoint not found' });
  });
  
  export default router;
  