Consulta Detalle de pedido
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user