gatus/controller/favicon.go
2021-09-11 01:51:14 -04:00

13 lines
290 B
Go

package controller
import (
"net/http"
)
// favIconHandler handles requests for /favicon.ico
func favIconHandler(staticFolder string) http.HandlerFunc {
return func(writer http.ResponseWriter, request *http.Request) {
http.ServeFile(writer, request, staticFolder+"/favicon.ico")
}
}