testing server
This commit is contained in:
@@ -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%',
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user