mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 13:53:02 +00:00
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
This commit is contained in:
commit
e0e006e284
2 changed files with 6 additions and 2 deletions
|
@ -46,6 +46,11 @@ router.post('/signin', require('./private/signin').default);
|
|||
router.use(require('./service/github').routes());
|
||||
router.use(require('./service/twitter').routes());
|
||||
|
||||
// Return 404 for unknown API
|
||||
router.all('*', async ctx => {
|
||||
ctx.status = 404;
|
||||
});
|
||||
|
||||
// Register router
|
||||
app.use(router.routes());
|
||||
|
||||
|
|
|
@ -122,8 +122,7 @@ router.get('/notes/:note', async ctx => {
|
|||
router.get('*', async ctx => {
|
||||
await send(ctx, `app/base.html`, {
|
||||
root: client,
|
||||
maxage: ms('3 days'),
|
||||
immutable: true
|
||||
maxage: ms('5m')
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue