Added comment on POST for countries

This commit is contained in:
Federico Kereki
2018-06-10 09:47:57 -03:00
parent ef8cde950d
commit 727ddd92f6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -39,6 +39,8 @@ app.delete("/countries/:country", (req, res) =>
deleteCountry(res, dbConn, req.params.country)
);
// We don't allow a POST to /countries
app.put("/countries/:country", (req, res) =>
putCountry(res, dbConn, req.params.country, req.body.name)
);
+2
View File
@@ -95,6 +95,8 @@ app.delete("/countries/:country", (req, res) =>
deleteCountry(res, dbConn, req.params.country)
);
// We don't allow a POST to /countries
app.put("/countries/:country", (req, res) =>
putCountry(res, dbConn, req.params.country, req.body.name)
);