2017-08-09 22:18:28 +02:00
|
|
|
/**
|
|
|
|
* 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) {
|
|
|
|
|
2017-09-21 23:08:21 +02:00
|
|
|
api_template = template_render.get_template("api_examples");
|
2017-08-09 22:18:28 +02:00
|
|
|
|
|
|
|
res.send (
|
|
|
|
template_render.get_index_template(
|
2017-09-21 23:08:21 +02:00
|
|
|
api_template,
|
2017-08-09 22:18:28 +02:00
|
|
|
req.url
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = router;
|