var express = require('express'); var router = express.Router(); var fs = require('fs'); var template_render = require('../lib/render_template.js'); router.get('/', function(req, res, next) { var content = ""; content = template_render.get_template("dhcp_config_snapshots"); /* Read Config */ var json_file = require('jsonfile'); var glass_config = json_file.readFileSync('config/glass_config.json'); content = template_render.set_template_variable(content, "title", "DHCP Config Snaphots"); var backups = ''; fs.readdirSync("./config_backups").forEach(function(file) { backups = backups + "