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) => {
|
setHeaders: (res) => {
|
||||||
res.setHeader('cache-control', 'immutable');
|
res.setHeader('cache-control', 'immutable');
|
||||||
},
|
},
|
||||||
|
})))
|
||||||
|
.use(Mount('/pictures', Static(path.resolve(__dirname, '../pictures'), {
|
||||||
|
setHeaders: (res) => {
|
||||||
|
res.setHeader('cache-control', 'immutable');
|
||||||
|
},
|
||||||
})));
|
})));
|
||||||
|
|
||||||
module.exports = app;
|
module.exports = app;
|
||||||
|
|
Loading…
Reference in a new issue