diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-22 16:19:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-22 16:19:32 +0900 |
| commit | b646877e8bf73650859c52fc00a601da5b34bfc0 (patch) | |
| tree | 347c7a8d7744b8da7d966fe0422dad6f38a8a610 /src/web/server.ts | |
| parent | [Client] Fix design (diff) | |
| download | sharkey-b646877e8bf73650859c52fc00a601da5b34bfc0.tar.gz sharkey-b646877e8bf73650859c52fc00a601da5b34bfc0.tar.bz2 sharkey-b646877e8bf73650859c52fc00a601da5b34bfc0.zip | |
#309 and some cleanups
Diffstat (limited to 'src/web/server.ts')
| -rw-r--r-- | src/web/server.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web/server.ts b/src/web/server.ts index baad0f6c67..cd3560d834 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -35,12 +35,12 @@ app.use((req, res, next) => { }); /** - * Static resources + * Static assets */ -app.use(favicon(`${__dirname}/resources/favicon.ico`)); -app.get('/manifest.json', (req, res) => res.sendFile(__dirname + '/resources/manifest.json')); -app.get('/apple-touch-icon.png', (req, res) => res.sendFile(__dirname + '/resources/apple-touch-icon.png')); -app.use('/resources', express.static(`${__dirname}/resources`, { +app.use(favicon(`${__dirname}/assets/favicon.ico`)); +app.get('/manifest.json', (req, res) => res.sendFile(__dirname + '/assets/manifest.json')); +app.get('/apple-touch-icon.png', (req, res) => res.sendFile(__dirname + '/assets/apple-touch-icon.png')); +app.use('/assets', express.static(`${__dirname}/assets`, { maxAge: ms('7 days') })); |