On 10/04/2015 05:08 PM, Joe Barnes wrote:
> BTW, I updated the example to make sure it is clear to you that you can customize the splitting for only when it matches your rest endpoint. In this case, mine will only do our custom split when the URI starts with "test":
>
> val splitter:SplitSuffixPF = {
> case parts @ ("test" :: _) => // <= Parts is a List[String] of each part between slashes, matching only if starts with "test"
>
> // Since you want the entire filename without the suffix split, there is nothing to do
> // but return the parts and an empty suffix
> (parts, "")
> }
>
Awesome. Exactly what I need. Thanks Joe!