Skip to content
Snippets Groups Projects
Commit 6a466b51 authored by Sveinung Øverland's avatar Sveinung Øverland
Browse files

Broke sum.js

parent 90df5ceb
No related branches found
No related tags found
No related merge requests found
Pipeline #22973 failed
function sum(a, b) {
return a + b;
return a - b;
}
module.exports = sum;
\ No newline at end of file
module.exports = sum;
......@@ -47,7 +47,7 @@ app.delete("/person/:personId"), (req, res) => {
res.status(status);
res.json(data);
});
}
};
app.put("/person/:personId"), (req, res) => {
console.log("Updating person :personId");
......@@ -55,6 +55,6 @@ app.put("/person/:personId"), (req, res) => {
res.status(status);
res.json(data);
});
}
};
var server = app.listen(8080);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment