From df796a005a84ee2e514b005cc84ce66f46f8c935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E9=9B=B7?= Date: Wed, 12 Nov 2025 17:58:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DhandleSimpleEndpoint=E8=BF=94?= =?UTF-8?q?=E5=9B=9EPromise=E5=AF=BC=E8=87=B4=E7=9A=84=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/geminiRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/geminiRoutes.js b/src/routes/geminiRoutes.js index 78a44bd3..54f84426 100644 --- a/src/routes/geminiRoutes.js +++ b/src/routes/geminiRoutes.js @@ -351,7 +351,7 @@ router.get('/key-info', authenticateApiKey, async (req, res) => { // 通用的简单端点处理函数(用于直接转发的端点) // 适用于:listExperiments 等不需要特殊业务逻辑的端点 -async function handleSimpleEndpoint(apiMethod) { +function handleSimpleEndpoint(apiMethod) { return async (req, res) => { try { if (!ensureGeminiPermission(req, res)) {