aboutsummaryrefslogtreecommitdiffstats
path: root/model.js
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-07-06 11:24:39 +0000
committerterminaldweller <thabogre@gmail.com>2022-07-06 11:24:39 +0000
commitfc713bcbb320ff692cac6332f5aa587dc817305c (patch)
treec0f59a5ded32b58e413c2699c153ae017cb3fca6 /model.js
parentnow the blog uses the db for everything. now need to decide on how to populat... (diff)
downloadblog-fc713bcbb320ff692cac6332f5aa587dc817305c.tar.gz
blog-fc713bcbb320ff692cac6332f5aa587dc817305c.zip
WIP, we now have to fix the pug template which is not working
Diffstat (limited to '')
-rw-r--r--model.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.js b/model.js
index 5df1270..dde3913 100644
--- a/model.js
+++ b/model.js
@@ -54,6 +54,7 @@ function populateDB(model) {
newBlogPost.save();
});
}
+
module.exports = {
blogPost: mongoose.model("BlogPost", BlogPostSchema),
dbInit: dbInit,