summaryrefslogtreecommitdiff
path: root/pkg/web/handlers.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-02-11 17:13:53 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-02-11 19:05:29 +0100
commit828ee14b4e903bbda9291bc9ee09ff98b66003c7 (patch)
tree171d4ba1766274087f2d29f233e90e59f5781225 /pkg/web/handlers.go
parentecaa22111ee8e34111080139e1e8a92b90e30158 (diff)
[feat] metrics listen in separate port
Diffstat (limited to 'pkg/web/handlers.go')
-rw-r--r--pkg/web/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/web/handlers.go b/pkg/web/handlers.go
index 633ae95..9c4e91b 100644
--- a/pkg/web/handlers.go
+++ b/pkg/web/handlers.go
@@ -33,8 +33,8 @@ func (ch *CertHandler) CertResponder(w http.ResponseWriter, r *http.Request) {
ch.Cainfo.CertWriter(w)
}
-func HttpFileHandler(route string, path string) {
- http.HandleFunc(route, func(w http.ResponseWriter, r *http.Request) {
+func HttpFileHandler(mux *http.ServeMux, route string, path string) {
+ mux.HandleFunc(route, func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, path)
})
}