Consulta Detalle de pedido

This commit is contained in:
Pablinux
2025-08-05 02:08:31 -05:00
parent ef90a045e6
commit 7ad00e45bb
20 changed files with 913 additions and 56 deletions

View File

@@ -2,6 +2,7 @@ const controlador = {};
//const dirPath = "/home/pablinux/Projects/Node/APP-SIGMA-WEB/src/public/files/";
//const var_locals = ;
//********* APP-panel control ********//
const { stringTo_md5 } = require('../scripts/helpers');
const path = require('path');
controlador.upload = (req, res) => {
if (!req.files || Object.keys(req.files).length === 0) {
@@ -92,16 +93,4 @@ controlador.cloud_panel = (req, res, next) => {
});
};
function stringTo_md5(data_string){
var crypto = require('crypto');
const md5 = crypto.createHash('md5').update(data_string).digest('hex');
console.log("MD5: ", md5);
return md5;
}
function token(data_string){
var crypto = require('crypto');
const md5 = crypto.createHash('md5').update(data_string).digest('hex');
//console.log("MD5: ", md5);
return md5;
}
module.exports = controlador;