UUID extractor of a path variable:
Path("/user/thomasd") match { case Root / "user" / StringVar(userId) => ...