Files
ip-info/internal/services/api/handler_ip.go
thuanle 1ef2896fb1
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
query other ip
2025-10-13 17:27:14 +07:00

11 lines
140 B
Go

package api
import (
"github.com/gin-gonic/gin"
"net/http"
)
func HandleMyIp(c *gin.Context) {
c.String(http.StatusOK, c.ClientIP())
}