Is there a way to match all “segments” after a certain point as a list param?
e.g. /yada/yada/1.2.10/doc/basics/getting-started/
would have a param :doc ["basics" "getting-started"]
?
Hello All…
Does yada cache responses by default..?
I have an endpoint that is returning the same result over and over, but when I run the underlying function (that creates the response for the Yada Resource) in my REPL I get what I expect, a different result time after time.
@martinklepsch bidi has no notion of segments
@maleghast What happens if you curl it?
@dominicm - @mccraigmccraig helped me out - I was being a dumbass in the way I was defining my Yada resource.
Thanks though!
Ah you, set it to the constant. I was suspect of that 🙂
Yep - was n00b-ish in the extreme, and if I had really__ been thinking about it I would have spotted it myself.
Thanks for getting back to me though 🙂
@dominicm I figured, so what would be a good way of dealing with this?
@martinklepsch each bidi handler can say it matches a path, when asked, whether or not it matches all the remaining path or the start of it
To build on ^, you can then split the remainder into segments yourself.
@martinklepsch there is also Yada subresources which you might be looking for?