更新 CLI 版本至 0.1.33,重构构建配置,添加新的路由和中间件,增强身份验证支持
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user