From b646877e8bf73650859c52fc00a601da5b34bfc0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Mar 2017 16:19:32 +0900 Subject: #309 and some cleanups --- src/web/server.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/web/server.ts') 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') })); -- cgit v1.2.3-freya