Serve pictures too

This commit is contained in:
Henri Bergius 2018-12-26 18:40:20 +01:00
parent 1d485aec4b
commit 917b005a8b

View file

@ -21,6 +21,11 @@ app
setHeaders: (res) => {
res.setHeader('cache-control', 'immutable');
},
})))
.use(Mount('/pictures', Static(path.resolve(__dirname, '../pictures'), {
setHeaders: (res) => {
res.setHeader('cache-control', 'immutable');
},
})));
module.exports = app;