mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-08 00:54:07 +01:00
13 lines
273 B
Go
13 lines
273 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// FavIcon handles requests for /favicon.ico
|
|
func FavIcon(staticFolder string) http.HandlerFunc {
|
|
return func(writer http.ResponseWriter, request *http.Request) {
|
|
http.ServeFile(writer, request, staticFolder+"/favicon.ico")
|
|
}
|
|
}
|