unmatched api handler reported as 'invalid' (#1028)

This commit is contained in:
Tomas Knappek
2018-06-01 13:49:40 -07:00
committed by Shiva
parent a57907eed0
commit e0425abd19

View File

@@ -88,7 +88,7 @@ func apiMetricsWrap(s *Server) {
} }
start := time.Now() start := time.Now()
// get the handler url, example: /v1/apps/:app // get the handler url, example: /v1/apps/:app
url := "" url := "invalid"
for _, r := range routes { for _, r := range routes {
if r.Handler == c.HandlerName() { if r.Handler == c.HandlerName() {
url = r.Path url = r.Path