mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
admin tools initial release
This commit is contained in:
@@ -38,6 +38,16 @@ function configure (app, wares, ctx) {
|
||||
}
|
||||
});
|
||||
});
|
||||
// delete record
|
||||
api.delete('/devicestatus/:_id', wares.verifyAuthorization, function(req, res) {
|
||||
ctx.devicestatus.remove(req.params._id, function (err, removed) {
|
||||
if (err) {
|
||||
res.sendJSONStatus(res, consts.HTTP_INTERNAL_ERROR, 'Mongo Error', err);
|
||||
} else {
|
||||
res.json(removed);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user