更新 CLI 版本至 0.1.33,重构构建配置,添加新的路由和中间件,增强身份验证支持

This commit is contained in:
xiongxiao
2026-03-24 17:38:37 +08:00
committed by cnb
parent b05f059aea
commit 4e2ae49372
27 changed files with 125 additions and 97 deletions

View File

@@ -1,7 +1,33 @@
import { app } from './app.ts'
import './routes/login.ts'
// 导入所有路由模块
import './routes/app.ts';
import './routes/cc.ts';
import './routes/ccc.ts';
import './routes/config.ts';
import './routes/deploy.ts';
import './routes/docker.ts';
import './routes/download.ts';
import './routes/gist.ts';
import './routes/jwks.ts';
import './routes/login.ts';
import './routes/npm.ts';
import './routes/proxy.ts';
import './routes/publish.ts';
import './routes/remote-config.ts';
import './routes/remote-secret.ts';
import './routes/sync.ts';
import './routes/token-ls.ts';
import './routes/update.ts';
export { app };
app.createAuth(() => { })
app.createRouteList()
app.createRouteList()
export const runApp = async (msg: {
path: string,
key?: string,
payload: any
}) => {
return await app.run(msg);
}
export { app };