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

@@ -7,7 +7,7 @@ app.route({
path: 'cnb',
key: 'list-repos',
description: '列出我的代码仓库',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({

View File

@@ -6,7 +6,7 @@ app.route({
path: 'cnb',
key: 'create-repo',
description: '创建代码仓库, 参数name, visibility, description',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -46,7 +46,7 @@ app.route({
path: 'cnb',
key: 'create-repo-file',
description: '在代码仓库中创建文件, repoName, filePath, content, encoding。使用CNB_COOKIE进行鉴权',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -85,7 +85,7 @@ app.route({
path: 'cnb',
key: 'delete-repo',
description: '删除代码仓库, 参数name',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({