aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-08-12 11:59:43 -0400
committerAndrew Lee <alee14498@gmail.com>2019-08-12 11:59:43 -0400
commit4c04dcdf189dc6b665bf4960317f93923f58cce5 (patch)
tree93389374a53f0adc333d9a02aec60c67a58caac5 /app.js
parent557e496d3c8e41cc7c98bee5d425315922984056 (diff)
downloadalp-website-4c04dcdf189dc6b665bf4960317f93923f58cce5.tar.gz
alp-website-4c04dcdf189dc6b665bf4960317f93923f58cce5.tar.bz2
alp-website-4c04dcdf189dc6b665bf4960317f93923f58cce5.zip
Added the foundations for the blog, changed index and refactoring some code
Diffstat (limited to 'app.js')
-rw-r--r--app.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/app.js b/app.js
index 86374e9..01e13ef 100644
--- a/app.js
+++ b/app.js
@@ -43,11 +43,11 @@ const rl = readline.createInterface({
});
function rlHelp() {
- console.log("---------HELP-------");
+ console.log("-----------HELP---------");
console.log("help - Displays help");
console.log("clear - Clears the console");
console.log("exit - Exits Application");
- console.log("--------------------");
+ console.log("------------------------");
}
rl.on("line", (input) => {
@@ -72,7 +72,7 @@ rl.on("line", (input) => {
}
});
-console.log("[i] Starting up Website...")
+console.log("[i] Starting up Website...");
app.set('view engine', 'ejs');
@@ -83,6 +83,7 @@ app.use(logger);
app.use("/", require("./routes/index"));
app.use("/projects", require("./routes/projects"));
+app.use("/blog", require("./routes/blog"));
app.use("/about", require("./routes/about"));
app.use((req, res) => {