From 6923a12dd9bc08f9f1260f8c6c9fe90249547414 Mon Sep 17 00:00:00 2001 From: opsx Date: Sun, 1 Nov 2026 00:48:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(ai):=20=E5=8A=A9=E6=89=8B=20chat=20?= =?UTF-8?q?=E7=AB=AF=E7=82=B9=E8=A1=A5=20AdminAuth=E2=80=94=E2=80=94?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=B5=AE=E7=90=83=E5=B7=B2=E9=99=90=20admin,?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E5=90=8C=E6=AD=A5=E5=85=9C=E5=BA=95=E9=98=B2?= =?UTF-8?q?=E6=99=AE=E9=80=9A=E7=94=A8=E6=88=B7=E7=9B=B4=E8=B0=83=20API=20?= =?UTF-8?q?=E8=80=97=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routers/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routers/router.go b/backend/routers/router.go index 7eaa44a..1aeef57 100644 --- a/backend/routers/router.go +++ b/backend/routers/router.go @@ -130,7 +130,7 @@ func SetupRouter() *gin.Engine { ai.GET("/config", middleware.AdminAuth(), aiCtrl.GetConfig) ai.PUT("/config", middleware.AdminAuth(), aiCtrl.SaveConfig) ai.POST("/config/test", middleware.AdminAuth(), aiCtrl.TestConfig) - ai.POST("/chat", middleware.RequirePro(), aiCtrl.Chat) + ai.POST("/chat", middleware.AdminAuth(), middleware.RequirePro(), aiCtrl.Chat) ai.GET("/runs", aiCtrl.ListRuns) ai.GET("/runs/:id", aiCtrl.GetRun) }