Skip to content

Change subir instead upload #35

@thedarsideofit

Description

@thedarsideofit

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions