From 315ca73851d4a15b9a99df4c119fa50531383041 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 26 Apr 2025 11:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82post?= =?UTF-8?q?=E6=94=B9get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/tool.go b/handler/tool.go index 515a06e..18015fd 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -56,8 +56,8 @@ func SetUpToolGroup(router *gin.Engine) { //服务器、设备状态接口 toolGroup.POST("/monitor", SetDeviceStatusV2) toolGroup.POST("/qq_callback", handleQQCallback) - toolGroup.POST("/qq_auth", GetQQAuthUrl) - toolGroup.POST("/github_auth", ToGithubAuthPage) + toolGroup.GET("/qq_auth", GetQQAuthUrl) + toolGroup.GET("/github_auth", ToGithubAuthPage) toolGroup.POST("/github_callback", handleGithubCallback) //发送邮件 toolGroup.POST("/send_mail", SendMailTool)