equal
deleted
inserted
replaced
10 server.get('/snmpget/:host/:oid', (req, res, next) -> |
10 server.get('/snmpget/:host/:oid', (req, res, next) -> |
11 opts = |
11 opts = |
12 host: req.params.host |
12 host: req.params.host |
13 oids: [ req.params.oid ] |
13 oids: [ req.params.oid ] |
14 opts.community = req.params.community ? "public" |
14 opts.community = req.params.community ? "public" |
15 utils.snmpget(opts, (r) -> res.send r) |
15 snmpget(opts, (r) -> res.send r) |
16 return next() |
16 return next() |
17 ) |
17 ) |
18 |
18 |
19 server.post('/snmpget/:host', (req, res, next) -> |
19 server.post('/snmpget/:host', (req, res, next) -> |
20 opts = |
20 opts = |