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: 'create-issue',
description: '创建 Issue, 参数 repo, title, body, assignees, labels, priority',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -51,7 +51,7 @@ app.route({
path: 'cnb',
key: 'complete-issue',
description: '完成 Issue, 参数 repo, issueNumber',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({

View File

@@ -7,7 +7,7 @@ app.route({
path: 'cnb',
key: 'list-issues',
description: '查询 Issue 列表, 参数 repo, state, keyword, labels, page, page_size 等',
middleware: ['admin-auth'],
middleware: ['auth-admin'],
metadata: {
tags: ['opencode'],
...createSkill({