Return IP on any GET request sent to the server
This commit is contained in:
parent
94e84cce41
commit
b025a133a9
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue