- 新增 /test 接口返回 "ok" - 集成到 API 路由组中
This commit is contained in:
@@ -11,6 +11,11 @@ import (
|
||||
|
||||
func RegRoutes(r *gin.Engine) {
|
||||
g := r.Group("/api") //初始化路由组 /api/xxxx
|
||||
{
|
||||
g.GET("/test", func(context *gin.Context) {
|
||||
context.String(http.StatusOK, "ok")
|
||||
})
|
||||
}
|
||||
{
|
||||
g.GET("/token", controller.ListTokenHandler) //获取token列表
|
||||
g.POST("/token", controller.CreateTokenHandler) //创建token
|
||||
|
||||
Reference in New Issue
Block a user