Skip to content

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrazg committed Jun 23, 2024
1 parent 89ce020 commit 99e48d8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constant/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package constant

var Version = "1.4.0"
var Version = "1.4.1"
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 小宇宙FM API

> *主程序版本:v1.4.0*
> *主程序版本:v1.4.1*
>
> *文档版本:v1.4.0*
>
Expand Down
13 changes: 13 additions & 0 deletions handlers/pong.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package handlers

import (
"github.com/gin-gonic/gin"
"net/http"
)

var Pong = func(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{
"code": http.StatusOK,
"message": "pong",
})
}
3 changes: 2 additions & 1 deletion routes/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
)

func RegisterRouters(engine *gin.Engine) {
engine.Static("/doc", "../docs") // 文档
engine.Static("/doc", "../docs") // 文档
engine.GET("/ping", handlers.Pong)
engine.POST("/sendCode", handlers.SendCode) // 发送验证码
engine.POST("/login", handlers.Login) // 验证码登录
engine.POST("/subscription", utils.CheckAccessToken(), handlers.Subscription) // 订阅列表
Expand Down

0 comments on commit 99e48d8

Please sign in to comment.