|
|
|
@ -14,14 +14,9 @@ app.use(bodyParser.json(),function (req, res, next) {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.get('/meta/blacklist', function (req, res) {
|
|
|
|
|
list.getAllBlack().then(r => {
|
|
|
|
|
res.send(JSON.stringify(r))
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
app.get('/meta/greylist', function (req, res) {
|
|
|
|
|
list.getAllGrey().then(r => {
|
|
|
|
|
app.get('/status/:status', function (req, res) {
|
|
|
|
|
list.getStatus(req.params.status).then(r => {
|
|
|
|
|
res.send(JSON.stringify(r))
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|