Serve pictures too
This commit is contained in:
parent
1d485aec4b
commit
917b005a8b
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue