chore(deps): Update dependencies 🚀
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
||||
|
@ -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());
|
||||
|
@ -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,
|
||||
|
@ -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';
|
||||
|
Reference in New Issue
Block a user