Unfiltered offers an easy way to specify routes.
case GET(Path("/ask")) =>
It also offers an easy way to extract parameters.
case Params(params) =>
What if I want to do both? What is good style for this? I realize I could:
- use
case req @ GET(Path("/ask"))and usereq.parameterValues - match a second time on
req - call
Params.unapplydirectly
What should I do?
You can use
&likeSee ParamsSpec.scala#L38.