Main project #1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue