Merge branch 'develop' of https://github.com/syuilo/misskey into develop

This commit is contained in:
syuilo 2018-08-24 06:41:56 +09:00
commit 6ab2aec96e
2 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,11 @@ router.post('/signin', require('./private/signin').default);
router.use(require('./service/github').routes()); router.use(require('./service/github').routes());
router.use(require('./service/twitter').routes()); router.use(require('./service/twitter').routes());
// Return 404 for unknown API
router.all('*', async ctx => {
ctx.status = 404;
});
// Register router // Register router
app.use(router.routes()); app.use(router.routes());

View File

@ -122,8 +122,7 @@ router.get('/notes/:note', async ctx => {
router.get('*', async ctx => { router.get('*', async ctx => {
await send(ctx, `app/base.html`, { await send(ctx, `app/base.html`, {
root: client, root: client,
maxage: ms('3 days'), maxage: ms('5m')
immutable: true
}); });
}); });