Browse Source

Adding / route

master
Levi Olson 5 years ago
parent
commit
82ce41a52a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      main.go

+ 4
- 0
main.go View File

@ -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")
})

Loading…
Cancel
Save