From 1ef68230de8e7acc39462022e91e79ed4bad052f Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 20 Jun 2020 19:55:29 +0200 Subject: [PATCH] feat: display name in /api endpoint. --- app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.go b/app.go index 0b47c72..591a564 100644 --- a/app.go +++ b/app.go @@ -191,6 +191,7 @@ func apiHandler(w http.ResponseWriter, req *http.Request) { URL string `json:"url,omitempty"` Host string `json:"host,omitempty"` Method string `json:"method,omitempty"` + Name string `json:"name,omitempty"` }{ Hostname: hostname, IP: []string{}, @@ -198,6 +199,7 @@ func apiHandler(w http.ResponseWriter, req *http.Request) { URL: req.URL.RequestURI(), Host: req.Host, Method: req.Method, + Name: name, } ifaces, _ := net.Interfaces()