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

@@ -9,7 +9,7 @@ app.route({
path: 'cnb',
key: 'start-workspace',
description: '启动开发工作空间, 参数 repo',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -42,7 +42,7 @@ app.route({
path: 'cnb',
key: 'list-workspace',
description: '获取cnb开发工作空间列表可选参数 status=running 获取运行中的环境',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -73,7 +73,7 @@ app.route({
path: 'cnb',
key: 'get-workspace',
description: '获取工作空间详情,通过 repo 和 sn 获取',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -104,7 +104,7 @@ app.route({
path: 'cnb',
key: 'delete-workspace',
description: '删除工作空间,通过 pipelineId 或 sn',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -143,7 +143,7 @@ app.route({
path: 'cnb',
key: 'stop-workspace',
description: '停止工作空间,通过 pipelineId 或 sn',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({