diff --git a/apiserver_in_memory.js b/apiserver_in_memory.js index 3fa1c15..fc3aacf 100644 --- a/apiserver_in_memory.js +++ b/apiserver_in_memory.js @@ -48,6 +48,7 @@ app.get("/counters/:counterName", (req, res) => { } res.status(404).send(error_response) + return } data_response = { @@ -66,6 +67,7 @@ app.post("/counters/:counterName/increment", (req, res) => { } res.status(404).send(error_response) + return } data_response = { @@ -87,6 +89,7 @@ app.post("/counters/:counterName/decrement", (req, res) => { } res.status(404).send(error_response) + return } data_response = {