chore(deps): Update dependencies 🚀
This commit is contained in:
parent
3f78f6f6bb
commit
3599f16d22
8 changed files with 673 additions and 566 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue