Handle favicon requests

Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
justusbunsi 2021-10-11 08:50:50 +02:00
parent a51520382e
commit 48cb8a0ede
No known key found for this signature in database
GPG key ID: 990B348ECAC9C7DB

View file

@ -74,5 +74,9 @@ func Serve(c *cli.Context) error {
addSonarQubeEndpoint(r)
addGiteaEndpoint(r)
r.GET("/favicon.ico", func(c *gin.Context) {
c.Status(http.StatusNoContent)
})
return endless.ListenAndServe(":3000", r)
}