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)