Fix cannot update (#5890)

This commit is contained in:
tamaina
2020-02-09 12:47:50 +09:00
committed by GitHub
parent 45cb5ff4ef
commit cc72f91465
3 changed files with 26 additions and 2 deletions

View File

@@ -327,6 +327,10 @@ const override = (source: string, target: string, depth: number = 0) =>
router.get('/othello', async ctx => ctx.redirect(override(ctx.URL.pathname, 'games/reversi', 1)));
router.get('/reversi', async ctx => ctx.redirect(override(ctx.URL.pathname, 'games')));
router.get('/flash', async ctx => {
await ctx.render('flash');
});
// Render base html for all requests
router.get('*', async ctx => {
const meta = await fetchMeta();