Browse Source

Adding favicon

master
Levi Olson 5 years ago
parent
commit
79f954d9aa
2 changed files with 3 additions and 0 deletions
  1. BIN
      assets/favicon.ico
  2. +3
    -0
      main.go

BIN
assets/favicon.ico View File

Before After

+ 3
- 0
main.go View File

@ -21,6 +21,9 @@ func main() {
router.GET("/", func(c *gin.Context) { router.GET("/", func(c *gin.Context) {
c.Redirect(http.StatusTemporaryRedirect, "https://github.com/leothelocust/dark-sky-weather-api") c.Redirect(http.StatusTemporaryRedirect, "https://github.com/leothelocust/dark-sky-weather-api")
}) })
router.GET("/favicon.ico", func(c *gin.Context) {
c.File("assets/favicon.ico")
})
router.GET("/ping", func(c *gin.Context) { router.GET("/ping", func(c *gin.Context) {
c.String(http.StatusOK, "pong") c.String(http.StatusOK, "pong")

Loading…
Cancel
Save