tads4-express/routes/autenticar.js

10 lines
277 B
JavaScript
Raw Permalink Normal View History

2024-10-04 01:47:02 +00:00
var express = require('express');
var router = express.Router();
2024-11-01 01:14:41 +00:00
const { autenticar, validarUsuario } = require('../controllers/autenticarController')
2024-10-04 01:47:02 +00:00
/* GET home page. */
router.get('/', autenticar);
2024-11-01 01:14:41 +00:00
router.post('/validar-usuario', validarUsuario);
2024-10-04 01:47:02 +00:00
module.exports = router;