From 79c41b12ac6bbe15e2cf3c2b688ae2abea4f6fe0 Mon Sep 17 00:00:00 2001 From: raul Date: Tue, 21 May 2024 08:25:57 +0200 Subject: [PATCH] Return IP on any GET request sent to the server --- cmd/serverFunc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/serverFunc.go b/cmd/serverFunc.go index c48d0e9..27f4cb3 100644 --- a/cmd/serverFunc.go +++ b/cmd/serverFunc.go @@ -21,6 +21,7 @@ func server() { router := gin.New() router.GET("/", serveIP) + router.GET("/:id", serveIP) router.Run(":" + listenPort) }