Statics
var express = require('express');
var router = express.Router();
// Each of the below routes just handles the HTML page that the user gets sent to.
// index route loads view.html
router.get("/", function(req, res) {
res.sendFile(path.join(__dirname, "../public/blog.html"));
});
// cms route loads cms.html
router.get("/cms", function(req, res) {
res.sendFile(path.join(__dirname, "../public/cms.html"));
});
// blog route loads blog.html
router.get("/blog", function(req, res) {
res.sendFile(path.join(__dirname, "../public/blog.html"));
});
// authors route loads author-manager.html
router.get("/authors", function(req, res) {
res.sendFile(path.join(__dirname, "../public/author-manager.html"));
});
module.exports = router;