feat: 更新多个依赖版本,添加客户端认证模块及缓存功能

This commit is contained in:
2026-03-09 19:00:34 +08:00
parent d33db1b8e7
commit 060595c352
10 changed files with 95 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ import { execCommand } from '@/module/npm-install.ts';
import { useKey } from '@kevisual/context';
app.route({
path: 'cnb-board',
path: 'cnb_board',
key: 'is-cnb-board',
description: '检查是否是 cnb-board 环境',
middleware: ['auth-admin']
@@ -13,17 +13,17 @@ app.route({
ctx.body = {
isCNB: !!isCNB,
};
}).addTo(app);
}).addTo(app, { overwrite: false });
app.route({
path: 'cnb-board',
path: 'cnb_board',
key: 'exit',
description: 'cnb的工作环境退出程序',
middleware: ['auth-admin'],
}).define(async (ctx) => {
const cmd = 'kill 1';
execCommand(cmd);
}).addTo(app);
}).addTo(app, { overwrite: false });