diff --git a/internal/controller/auth/github.go b/internal/controller/auth/github.go index 72e7ffddbc14079ae905aca5c21d02a59108ea38..fb07fd80e93d3671d74271ffcad686580e926ba4 100644 --- a/internal/controller/auth/github.go +++ b/internal/controller/auth/github.go @@ -146,3 +146,8 @@ func getLoginDevice(ctx *gin.Context) { ctx.Header("Content-Type", "text/html; charset=utf-8") ctx.HTML(http.StatusOK, "code.html", gin.H{}) } + +func getHelpPage(ctx *gin.Context) { + ctx.Header("Content-Type", "text/html; charset=utf-8") + ctx.HTML(http.StatusOK, "help.html", gin.H{}) +} diff --git a/internal/controller/auth/router_register.go b/internal/controller/auth/router_register.go index a29f66a52f9d83ef1fb10165da4f896aa3436c0e..63683a4b0eb197cc8dd235c5f86477de6fe19326 100644 --- a/internal/controller/auth/router_register.go +++ b/internal/controller/auth/router_register.go @@ -7,6 +7,7 @@ import ( ) func GinApi(g *gin.RouterGroup) { + g.GET("/help", getHelpPage) // 启动设备代码登录流程 g.POST("/login/device/code", postLoginDeviceCode) g.POST("/login/device", postLoginDevice) diff --git a/static/public/code.html b/static/public/code.html index 494cab8147739e591fabf968d8fc7d0d732676a6..2ded040307149d63952f648a5c832725c80ddb23 100644 --- a/static/public/code.html +++ b/static/public/code.html @@ -3,193 +3,224 @@
-