api-secure-databank/routes/datos.js

13 lines
395 B
JavaScript
Raw Normal View History

2023-06-18 18:46:04 +00:00
var express = require('express');
var router = express.Router();
const auth = require('../middlewares/auth');
const log = require('../middlewares/log');
var datos = require('../controllers/DatosController.js');
router.get('/recuperarDatos', auth.Authenticated,log.log, datos.recuperarDatos);
router.post('/subirDatos', auth.Authenticated,log.log, datos.subirDatos);
module.exports = router;