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

@@ -7,7 +7,7 @@ app.route({
path: 'cnb',
key: 'user-check',
description: '检查用户登录状态参数checkToken,default true; checkCookie, default false',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({

View File

@@ -6,7 +6,7 @@ app.route({
path: 'cnb',
key: 'set-cnb-cookie',
description: '设置当前cnb工作空间的cookie环境变量',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({
@@ -33,7 +33,7 @@ app.route({
path: 'cnb',
key: 'get-cnb-cookie',
description: '获取当前cnb工作空间的cookie环境变量',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({

View File

@@ -11,7 +11,7 @@ app.route({
path: 'cnb',
key: 'get-cnb-port-uri',
description: '获取当前cnb工作空间的port代理uri',
middleware: ['auth'],
middleware: ['admin-auth'],
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: ['auth'],
middleware: ['admin-auth'],
metadata: {
tags: ['opencode'],
...createSkill({