feat: 将所有中间件名称从'admin-auth'更新为'auth-admin',以统一认证方式

This commit is contained in:
2026-03-06 02:45:29 +08:00
parent 327db1e09a
commit a563f3e0d6
14 changed files with 27 additions and 27 deletions

View File

@@ -11,7 +11,7 @@ app.route({
path: 'cnb',
key: 'get-cnb-port-uri',
description: '获取当前cnb工作空间的port代理uri',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -40,7 +40,7 @@ app.route({
path: 'cnb',
key: 'get-cnb-vscode-uri',
description: '获取当前cnb工作空间的vscode代理uri, 包括多种访问方式, 如web、vscode、codebuddy、cursor、ssh',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({