setup a rep list route

This commit is contained in:
Paul Trowbridge 2019-02-11 19:38:31 +00:00
parent e74313df8d
commit 6ba6b3691a

View File

@ -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'))