Return IP on any GET request sent to the server
This commit is contained in:
parent
94e84cce41
commit
79c41b12ac
|
@ -21,6 +21,7 @@ func server() {
|
|||
|
||||
router := gin.New()
|
||||
router.GET("/", serveIP)
|
||||
router.GET("/:id", serveIP)
|
||||
router.Run(":" + listenPort)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue