setup a rep list route
This commit is contained in:
parent
e74313df8d
commit
6ba6b3691a
5
index.js
5
index.js
@ -32,6 +32,11 @@ server.get('/list_sources', function (req,res) {
|
|||||||
Postgres.FirstRow(sql,[],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.get('/', (req,res) => res.send('its running yay 🎡'))
|
||||||
|
|
||||||
server.listen(3000,() => console.log('started'))
|
server.listen(3000,() => console.log('started'))
|
||||||
|
Loading…
Reference in New Issue
Block a user