summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorMatthias Lindinger2019-08-26 14:55:41 +0200
committerMatthias Lindinger2019-08-26 14:57:44 +0200
commitfe2c8634d330d44da61e57584dba668c135a4b10 (patch)
treeb8c9585693cc71d45c2e4d0d719ade3711d8f0d5 /lib/response.js
parent9c1665ae5bf3cf38210ffd862d10de9b13bfacdd (diff)
Add link to imprint
Signed-off-by: Matthias Lindinger <m.lindinger@live.de>
Diffstat (limited to 'lib/response.js')
-rw-r--r--lib/response.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js
index 1313f9f4..6450bdf5 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -70,6 +70,7 @@ function showIndex (req, res, next) {
signin: authStatus,
infoMessage: req.flash('info'),
errorMessage: req.flash('error'),
+ imprint: fs.existsSync(path.join(config.docsPath, 'imprint.md')),
privacyStatement: fs.existsSync(path.join(config.docsPath, 'privacy.md')),
termsOfUse: fs.existsSync(path.join(config.docsPath, 'terms-of-use.md')),
deleteToken: deleteToken