Faviconを可変にするなど

This commit is contained in:
syuilo
2019-03-14 16:30:51 +09:00
parent d762a6ce58
commit 6ceff60c1e
5 changed files with 25 additions and 5 deletions

View File

@@ -250,7 +250,10 @@ router.get('/reversi', async ctx => ctx.redirect(override(ctx.URL.pathname, 'gam
router.get('*', async ctx => {
const meta = await fetchMeta();
await ctx.render('base', {
img: meta.bannerUrl
img: meta.bannerUrl,
title: meta.name,
desc: meta.description,
icon: meta.iconUrl
});
ctx.set('Cache-Control', 'public, max-age=300');
});