text: const express = require('express');
  const UserController = require('../controllers/UserController');
  const validateToken = require('../middlewares/ValidateToken');
  
  const routes = express.Router();
  
  routes.post('/register', UserController.register);
  
  routes.get('/', UserController.findAll);
  
  routes.get('/:id', UserController.findById);
  
  routes.put('/:id', validateToken, UserController.update);
  
  routes.delete('/:id', validateToken, UserController.delete);
  
  module.exports = routes;
  