glass-isc-dhcp/routes/api_examples.js

22 lines
424 B
JavaScript

/**
* Created by cmiles on 8/9/2017.
*/
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) {
api_template = template_render.get_template("api_examples");
res.send (
template_render.get_index_template(
api_template,
req.url
)
);
});
module.exports = router;