mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 07:53:38 +01:00
13 lines
290 B
Go
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")
|
|
}
|
|
}
|