Return IP on any GET request sent to the server

This commit is contained in:
raul 2024-05-21 08:25:57 +02:00
parent 94e84cce41
commit 79c41b12ac
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ func server() {
router := gin.New()
router.GET("/", serveIP)
router.GET("/:id", serveIP)
router.Run(":" + listenPort)
}