var express = require('express'); var router = express.Router(); var fs = require('fs'); var template_render = require('../lib/render_template.js'); /* GET home page. */ router.get('/', function(req, res, next) { console.log(req.url); counters = template_render.get_template("counters"); /* Display Shared Networks Row */ content_shared_networks = template_render.get_template("shared_networks"); /* Display Subnets Row */ content_subnets = template_render.get_template("display_subnets"); res.send( template_render.get_index_template( counters + '
' + content_shared_networks + content_subnets + '
', req.url ) + '' ); }); module.exports = router;