From 92171e95d2d83b2adace40dbc0f7fca9c1fe4797 Mon Sep 17 00:00:00 2001 From: idsh <38422176+idsh@users.noreply.github.com> Date: Sun, 16 Jun 2019 20:48:44 +0300 Subject: [PATCH] Update poiUtils.js --- Utils/poiUtils.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Utils/poiUtils.js b/Utils/poiUtils.js index 13936b1..300e70c 100644 --- a/Utils/poiUtils.js +++ b/Utils/poiUtils.js @@ -64,6 +64,15 @@ function getCategories(req, res) { res.sendStatus(500); }); } +/** + * gets all countries names from the database + * @param req - + * @param res - + */ +function GetCountries(req, res) { + result = {"countries":["Australia","Bolivia","China","Denemark","Israel","Latvia","Monaco","August","Norway","Panama","Switzerland","USA"]}; + res.send(result) +} function updatePoiWatchers(req, res){ let poiName = req.body.poi || "";