更新 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

@@ -20,9 +20,9 @@ export const getPath = async (dir: string) => {
app.route({
path: 'jwks',
key: 'generate',
alias: 'gen',
description: '生成 JWKS 密钥对',
metadata: {
middleware: ['auth'],
args: {
dir: z.string().optional().describe('指定保存目录'),
}
@@ -47,6 +47,7 @@ app.route({
key: 'get',
description: '获取 JWKS 内容',
metadata: {
middleware: ['auth'],
args: {
dir: z.string().optional().describe('指定 JWKS 所在目录'),
type: z.string().optional().describe('指定获取类型jwks 或 privateJWK'),