feat: 将所有路由的中间件从 'auth' 更新为 'admin-auth',并更新版本至 0.0.13

This commit is contained in:
2026-01-31 00:30:37 +08:00
parent 0d17d56628
commit 6e5a642ab2
13 changed files with 109 additions and 73 deletions

View File

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

View File

@@ -7,7 +7,7 @@ app.route({
path: 'cnb',
key: 'create-repo',
description: '创建代码仓库, 参数name, visibility, description',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -47,7 +47,7 @@ app.route({
path: 'cnb',
key: 'create-repo-file',
description: '在代码仓库中创建文件, repoName, filePath, content, encoding',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -86,7 +86,7 @@ app.route({
path: 'cnb',
key: 'delete-repo',
description: '删除代码仓库, 参数name',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({