Can't access endpoint in Replit's webview

Question:
I’m trying to access the /ping endpoint in webview browser.

I’ve tried the following:

Repl link:
https://replit.com/@mimesis/HurtfulRespectfulLaboratory#main.go

	router.GET("/ping", func(c *gin.Context) {
		c.JSON(http.StatusOK, gin.H{"message": "pong"})
	})

Remove the :8080. Replit proxies your website at the default port

1 Like