* wip

* wip

* wip
This commit is contained in:
syuilo
2021-03-03 01:03:29 +09:00
committed by GitHub
parent 7e93319873
commit 5e9cc09fcb
11 changed files with 271 additions and 5 deletions

View File

@@ -376,6 +376,18 @@ router.get('/info', async ctx => {
});
});
router.get('/bios', async ctx => {
await ctx.render('bios', {
version: config.version,
});
});
router.get('/cli', async ctx => {
await ctx.render('cli', {
version: config.version,
});
});
const override = (source: string, target: string, depth: number = 0) =>
[, ...target.split('/').filter(x => x), ...source.split('/').filter(x => x).splice(depth)].join('/');