3 ms·
Just an example of spray: get { path("foo" / IntNumber) { itemId => { complete("You just looked for foo #" + itemId) } } Or
by yummyfajitas 11y ago
Just an example of spray:
get {
path("foo" / IntNumber) { itemId =>
{
complete("You just looked for foo #" + itemId)
}
}
Or:
path("foo") {
parameter('id.as[Int] ?) { (maybeId: Option[Int]) =>
{
...
}
}
}
I can't say I have any objection to this bizarre use of symbology.