https://kotlinlang.org logo
#http4k
Title
# http4k
n

Nezteb

05/16/2019, 2:58 AM
also, i know you can do
Copy code
val spec = "/organization" / Path.of("id") meta {
but i can’t seem to be able to do:
Copy code
val spec = "/organization" / Path.of("id") / "/workspaces" meta {
Is there a different way to do that?
d

dave

05/16/2019, 4:16 AM
@Nezteb for this second question, you are missing a parameter to your function. "Workspaces" will add a (dead) parameter of type string to the extracted parts. Also you have an extra leading slash there
n

Nezteb

05/16/2019, 4:28 AM
Sweet, I’ll take a look at that. Thanks Dave!
4 Views