Skip to content

Commit

Permalink
省点流量
Browse files Browse the repository at this point in the history
  • Loading branch information
gcslaoli committed Apr 6, 2024
1 parent 43f6989 commit 881a976
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend-api/backend-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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",
})
}

0 comments on commit 881a976

Please sign in to comment.