diff options
author | WilliButz | 2018-09-26 17:18:33 +0200 |
---|---|---|
committer | WilliButz | 2018-09-26 20:58:38 +0200 |
commit | 825ee4e66e79271c39631f2b9eb059caa8f17bfc (patch) | |
tree | 1f80bf12707e423c4cd36a4bdd9e830905239be9 | |
parent | 12cd74727065079905cb385119d7a2db35276cca (diff) |
app.js: add missing routes for configurable paths
Signed-off-by: WilliButz <wbutz@cyberfnord.de>
Diffstat (limited to '')
-rw-r--r-- | app.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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({ |