diff --git a/cmd/serverFunc.go b/cmd/serverFunc.go index 4e6215d..3308c4b 100644 --- a/cmd/serverFunc.go +++ b/cmd/serverFunc.go @@ -16,7 +16,7 @@ func server() { router := gin.Default() router.GET("/api/valencia", returnWeather) fmt.Printf("Listening on port %v...\n", listenPort) - router.Run("localhost:" + listenPort) + router.Run(":" + listenPort) } func returnWeather(c *gin.Context) {