From 6d379714cd5ab02d700a47a5d0383365b65ccecf Mon Sep 17 00:00:00 2001 From: YGXB_net Date: Thu, 30 Apr 2026 21:46:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 /test 接口返回 "ok" - 集成到 API 路由组中 --- api/api.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/api.go b/api/api.go index fac298b..cd71455 100644 --- a/api/api.go +++ b/api/api.go @@ -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