diff --git a/index.js b/index.js index 7ea548d..9f9d0c9 100644 --- a/index.js +++ b/index.js @@ -32,6 +32,11 @@ server.get('/list_sources', function (req,res) { Postgres.FirstRow(sql,[],res); }) +server.get('/rep_list', function (req,res) { + var sql = "select jsonb_agg(quota_rep) from (select distinct quota_rep from rlarp.osm) x"; + Postgres.FirstRow(sql,[],res); +}) + server.get('/', (req,res) => res.send('its running yay 🎡')) server.listen(3000,() => console.log('started'))