org.mashupbots.socko.routes
Matches the path of EndPoints in SockoEvents using segment patterns.
For example, to match /record/1, use:
/record/1
val r = Routes({ case PathSegments("record" :: id :: Nil) => { // id will be set to 1 ... } })
Matches the path of EndPoints in SockoEvents using segment patterns.
For example, to match
/record/1, use:val r = Routes({ case PathSegments("record" :: id :: Nil) => { // id will be set to 1 ... } })