Used in conjunction with RestHelper.
Used in conjunction with RestHelper.serveJx to
prefix the pattern matched path. For example:
serve("foo" / "bar" prefix {
case FindBaz(baz) :: Nil GetJson _ => baz: JValue
case FindBaz(baz) :: Nil GetXml _ => baz: Node
})
Used in conjunction with RestHelper.
Used in conjunction with RestHelper.serveJx to
prefix the pattern matched path. For example:
serveJx[Foo]("foo" / "bar" prefixJx {
case FindBaz(baz) :: Nil Get _ => baz
})
Do some magic to prefix path patterns with a single List