summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliButz2018-09-26 17:18:33 +0200
committerWilliButz2018-09-26 20:58:38 +0200
commit825ee4e66e79271c39631f2b9eb059caa8f17bfc (patch)
tree1f80bf12707e423c4cd36a4bdd9e830905239be9
parent12cd74727065079905cb385119d7a2db35276cca (diff)
app.js: add missing routes for configurable paths
Signed-off-by: WilliButz <wbutz@cyberfnord.de>
Diffstat (limited to '')
-rw-r--r--app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app.js b/app.js
index ab37bff1..76ff6644 100644
--- a/app.js
+++ b/app.js
@@ -126,6 +126,9 @@ app.use(i18n.init)
// routes without sessions
// static files
app.use('/', express.static(path.join(__dirname, '/public'), { maxAge: config.staticCacheTime }))
+app.use('/docs', express.static(path.resolve(__dirname, config.docsPath), { maxAge: config.staticCacheTime }))
+app.use('/uploads', express.static(path.resolve(__dirname, config.uploadsPath), { maxAge: config.staticCacheTime }))
+app.use('/default.md', express.static(path.resolve(__dirname, config.defaultNotePath), { maxAge: config.staticCacheTime }))
// session
app.use(session({