Files
gatus/controller/handler/favicon.go
T

12 lines
273 B
Go
Raw Normal View History

2021-09-12 18:39:09 -04:00
package handler
2021-09-11 01:51:14 -04:00
import (
"net/http"
)
2021-09-12 18:39:09 -04:00
// FavIcon handles requests for /favicon.ico
func FavIcon(staticFolder string) http.HandlerFunc {
2021-09-11 01:51:14 -04:00
return func(writer http.ResponseWriter, request *http.Request) {
http.ServeFile(writer, request, staticFolder+"/favicon.ico")
}
}