Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jxhczhl committed Nov 17, 2024
1 parent d000064 commit 3d303a6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion core/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,19 @@ func getList(c *gin.Context) {
}

func index(c *gin.Context) {
c.String(200, "你好,我是黑脸怪~")
//c.String(200, "你好,我是黑脸怪~")
htmlContent := `
<!DOCTYPE html>
<html>
<head><title>欢迎使用JsRpc</title></head>
<body>
你好,我是黑脸怪~
<p>微信:hl98_cn</p>
</body>
</html>
`
// 返回 HTML 页面
c.Data(200, "text/html; charset=utf-8", []byte(htmlContent))
}

func tlsHandler(HttpsHost string) gin.HandlerFunc {
Expand Down

0 comments on commit 3d303a6

Please sign in to comment.