From 881a976546c789e2a90e2147d7bc3b7aba36dac9 Mon Sep 17 00:00:00 2001 From: GCSLaoLi Date: Sat, 6 Apr 2024 12:20:19 -0400 Subject: [PATCH] =?UTF-8?q?=E7=9C=81=E7=82=B9=E6=B5=81=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend-api/backend-api.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend-api/backend-api.go b/backend-api/backend-api.go index 3e58692..c584e66 100644 --- a/backend-api/backend-api.go +++ b/backend-api/backend-api.go @@ -13,6 +13,7 @@ func init() { group := s.Group("/") group.ALL("/backend-api/*any", ProxyBackendApi) group.GET("/backend-api/prompt_library/", PromptLibrary) + group.POST("/backend-api/lat/r", LatR) } func Init(ctx g.Ctx) { @@ -42,3 +43,10 @@ func PromptLibrary(r *ghttp.Request) { r.Response.Status = res.StatusCode r.Response.Write(res.ReadAll()) } + +// /backend-api/lat/r +func LatR(r *ghttp.Request) { + r.Response.WriteJson(g.Map{ + "status": "success", + }) +}