org.mashupbots.socko.routes
Matches the path of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.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 org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using segment patterns.
For example, to match
/record/1
, use: