mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
修复handleSimpleEndpoint返回Promise导致的路由错误
This commit is contained in:
@@ -351,7 +351,7 @@ router.get('/key-info', authenticateApiKey, async (req, res) => {
|
|||||||
|
|
||||||
// 通用的简单端点处理函数(用于直接转发的端点)
|
// 通用的简单端点处理函数(用于直接转发的端点)
|
||||||
// 适用于:listExperiments 等不需要特殊业务逻辑的端点
|
// 适用于:listExperiments 等不需要特殊业务逻辑的端点
|
||||||
async function handleSimpleEndpoint(apiMethod) {
|
function handleSimpleEndpoint(apiMethod) {
|
||||||
return async (req, res) => {
|
return async (req, res) => {
|
||||||
try {
|
try {
|
||||||
if (!ensureGeminiPermission(req, res)) {
|
if (!ensureGeminiPermission(req, res)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user