testing server

This commit is contained in:
2022-11-28 22:17:43 -05:00
parent cde49185d6
commit b86006cea6
3 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
const config = { const config = {
db:{ db:{
host: '192.168.10.150', //host: '192.168.20.150',
host: '127.0.0.1',
port: 3306, port: 3306,
user: 'admin', user: 'admin',
pswd: 'Dx.1706%', pswd: 'Dx.1706%',

View File

@@ -205,5 +205,12 @@ function reg_DB() {
} }
//********* PRUEBA Y RECECION DE DATOS ********//
controlador.recibe_datos = (req, res) => {
console.log(req.body);
res.send(200);
//res.render('panel_control');
};
module.exports = controlador; module.exports = controlador;

View File

@@ -16,5 +16,7 @@ rutas.get('/', controlador_init.app_login);//FORM LOGIN DE LA APP
rutas.post('/login', controlador_init.auth);//Authenticacion de APP rutas.post('/login', controlador_init.auth);//Authenticacion de APP
rutas.get('/login_test', controlador_init.login_test);//login testing css / dev rutas.get('/login_test', controlador_init.login_test);//login testing css / dev
rutas.post('/operaciones/', controlador_init.recibe_datos);//testing json reccepcion server
module.exports = rutas; module.exports = rutas;