query other ip
All checks were successful
Build Docker Image / build (arm64) (push) Successful in 36s
Build Docker Image / build (amd64) (push) Successful in 4m18s
Build Docker Image / amend-manifest (push) Successful in 16s

This commit is contained in:
thuanle
2025-10-13 17:27:14 +07:00
parent f89394be9c
commit 1ef2896fb1
5 changed files with 283 additions and 4 deletions

View File

@@ -22,9 +22,10 @@ func StartApiService() {
_ = engine.SetTrustedProxies([]string{trustedProxyIP})
}
engine.GET("/", HandleIp)
engine.GET("/", HandleMyIp)
engine.GET("/json", HandleJson)
engine.GET("/metrics", HandleMetrics)
engine.GET("/:ip", HandleOtherIp)
port := os.Getenv(key.EnvApiPort)
if len(port) == 0 {