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 b025a133a9
1 changed files with 1 additions and 0 deletions

View File

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