fix: 🐛 motd
This commit is contained in:
parent
873ebcba83
commit
790e4361dc
|
@ -534,7 +534,7 @@ router.get('(.*)', async ctx => {
|
||||||
icon: meta.iconUrl,
|
icon: meta.iconUrl,
|
||||||
splashIcon: splashIconUrl,
|
splashIcon: splashIconUrl,
|
||||||
themeColor: meta.themeColor,
|
themeColor: meta.themeColor,
|
||||||
randomMOTD: motd,
|
randomMOTD: motd[Math.floor(Math.random() * motd.length)],
|
||||||
privateMode: meta.privateMode,
|
privateMode: meta.privateMode,
|
||||||
});
|
});
|
||||||
ctx.set('Cache-Control', 'public, max-age=3');
|
ctx.set('Cache-Control', 'public, max-age=3');
|
||||||
|
|
Loading…
Reference in New Issue