Skip to content

Commit 23bdba6

Browse files
committed
fn: fix precedence of path choice during route creation
Fixes #413
1 parent d2a81b5 commit 23bdba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fn/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func (a *routesCmd) create(c *cli.Context) error {
297297
if ff.Timeout != nil {
298298
timeout = *ff.Timeout
299299
}
300-
if ff.Path != nil {
300+
if route == "" && ff.Path != nil {
301301
route = *ff.Path
302302
}
303303
}

0 commit comments

Comments
 (0)