From 82ce41a52a5bde75cbf6b79590a9eeb64f40516b Mon Sep 17 00:00:00 2001 From: Levi Olson Date: Thu, 3 Jan 2019 12:23:35 -0600 Subject: [PATCH] Adding / route --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 9dbb1a1..5fda9c8 100644 --- a/main.go +++ b/main.go @@ -18,6 +18,10 @@ func main() { router := gin.Default() + router.GET("/", func(c *gin.Context) { + c.Redirect(http.StatusTemporaryRedirect, "https://github.com/leothelocust/dark-sky-weather-api") + }) + router.GET("/ping", func(c *gin.Context) { c.String(http.StatusOK, "pong") })