From c37c754e0b2873a259507a8c265442c5bcbd4bd5 Mon Sep 17 00:00:00 2001 From: C Cirello Date: Tue, 13 Dec 2016 19:52:54 +0100 Subject: [PATCH] fn: fix precedence of path choice during route creation (#427) Fixes #413 --- fn/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fn/routes.go b/fn/routes.go index 2c2f45ff4..b788412d1 100644 --- a/fn/routes.go +++ b/fn/routes.go @@ -297,7 +297,7 @@ func (a *routesCmd) create(c *cli.Context) error { if ff.Timeout != nil { timeout = *ff.Timeout } - if ff.Path != nil { + if route == "" && ff.Path != nil { route = *ff.Path } }