chore(deps): Update dependencies 🚀

This commit is contained in:
syuilo
2020-06-27 23:25:06 +09:00
parent 3f78f6f6bb
commit 3599f16d22
8 changed files with 673 additions and 566 deletions

View File

@ -96,7 +96,7 @@ router.post('/miauth/:session/check', async ctx => {
});
// Return 404 for unknown API
router.all('*', async ctx => {
router.all('(.*)', async ctx => {
ctx.status = 404;
});

View File

@ -23,7 +23,7 @@ router.get('/app-default.jpg', ctx => {
});
router.get('/:key', sendDriveFile);
router.get('/:key/*', sendDriveFile);
router.get('/:key/(.*)', sendDriveFile);
// Register router
app.use(router.routes());

View File

@ -58,7 +58,7 @@ const router = new Router();
//#region static assets
router.get('/assets/*', async ctx => {
router.get('/assets/(.*)', async ctx => {
await send(ctx as any, ctx.path, {
root: client,
maxage: ms('7 days'),
@ -333,7 +333,7 @@ router.get('/flush', async ctx => {
});
// Render base html for all requests
router.get('*', async ctx => {
router.get('(.*)', async ctx => {
const meta = await fetchMeta();
await ctx.render('base', {
img: meta.bannerUrl,

View File

@ -19,7 +19,7 @@ const XRD = (...x: { element: string, value?: string, attributes?: Record<string
typeof value === 'string' ? `>${escapeValue(value)}</${element}` : '/'
}>`).reduce((a, c) => a + c, '')}</XRD>`;
const allPath = '/.well-known/*';
const allPath = '/.well-known/(.*)';
const webFingerPath = '/.well-known/webfinger';
const jrd = 'application/jrd+json';
const xrd = 'application/xrd+xml';