mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
unmatched api handler reported as 'invalid' (#1028)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user