icon fixed

This commit is contained in:
alessio 2017-08-08 00:30:56 +02:00
parent e68664d7b4
commit b6bfae6083
1 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,9 @@ func render(c echo.Context, path string, mime int) error {
case 4: case 4:
rs.Header().Set(echo.HeaderContentType, "image/svg+xml") rs.Header().Set(echo.HeaderContentType, "image/svg+xml")
break break
case 5:
rs.Header().Set(echo.HeaderContentType, "image/png")
break
} }
rs.WriteHeader(http.StatusOK) rs.WriteHeader(http.StatusOK)
rs.Write(data) rs.Write(data)
@ -97,7 +100,7 @@ func (s *Server) Start(p *cli.Context) (err error) {
return render(c, "assets/assets/img/svg/logo.svg", 4) return render(c, "assets/assets/img/svg/logo.svg", 4)
}) })
e.GET("/assets/img/favicon-32x32.png", func(c echo.Context) error { e.GET("/assets/img/favicon-32x32.png", func(c echo.Context) error {
return render(c, "assets/assets/img/favicon-32x32.png", 4) return render(c, "assets/assets/img/favicon-32x32.png", 5)
}) })
e.GET("/assets/img/svg/ic_swap_vertical_circle_black_48px.svg", func(c echo.Context) error { e.GET("/assets/img/svg/ic_swap_vertical_circle_black_48px.svg", func(c echo.Context) error {
return render(c, "assets/assets/img/svg/ic_swap_vertical_circle_black_48px.svg", 4) return render(c, "assets/assets/img/svg/ic_swap_vertical_circle_black_48px.svg", 4)