first commit
This commit is contained in:
10
internal/services/api/handler_ip.go
Normal file
10
internal/services/api/handler_ip.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func HandleIp(c *gin.Context) {
|
||||
c.String(http.StatusOK, c.ClientIP())
|
||||
}
|
||||
Reference in New Issue
Block a user