alieksie
12/18/2018, 1:56 PM"/bar/" / Path.string().of(name = "foo")
comes
"/bar/" / Path.string().of(name = "foo").optional
So it would match both /bar/foo
and /bar/
reik.schatz
12/18/2018, 2:00 PMdave
12/18/2018, 2:01 PMalieksie
12/18/2018, 2:03 PMreik.schatz
12/18/2018, 2:03 PMfun execute() { execute(null) }
fun execute(name: String?)
"/match/" bindContract Method.GET to ::execute
"/match/" / Path.string().of(name = "foo") bindContract Method.GET to ::execute
alieksie
12/18/2018, 2:04 PM