glass-isc-dhcp/api/get_active_leases.js

16 lines
356 B
JavaScript

/**
* Created by cmiles on 8/9/2017.
*/
var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
var lease_parser = require('../lib/lease_parser.js');
lease_parser.clean();
res.setHeader('Content-Type', 'application/json');
res.send(JSON.stringify(dhcp_lease_data));
});
module.exports = router;