Skip to content

Commit

Permalink
feat: display name in /api endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 20, 2020
1 parent b112c26 commit 1ef6823
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,15 @@ 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{},
Headers: req.Header,
URL: req.URL.RequestURI(),
Host: req.Host,
Method: req.Method,
Name: name,
}

ifaces, _ := net.Interfaces()
Expand Down

0 comments on commit 1ef6823

Please sign in to comment.