Open
Description
Hi guys i find a minor detail in
var exec = require("child_process").exec;
function iniciar(response) {
console.log("Manipulador de petición 'iniciar' fue llamado.");
exec("ls -lah", function (error, stdout, stderr) {
response.writeHead(200, {"Content-Type": "text/html"});
response.write(stdout);
response.end();
});
}
//The name of the function its wrong and throw an exception change subir instead
function upload(response) {
console.log("Manipulador de petición 'subir' fue llamado.");
response.writeHead(200, {"Content-Type": "text/html"});
response.write("Hola Subir");
response.end();
}
exports.iniciar = iniciar;
exports.subir = subir;
Activity