You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case class UserId(value: String)
case class AnotherVal(value: String)
val ctxRoutes = ContextRoutes.of[UserId, IO] {
case GET -> Root / "ok" as userId => Ok(s"hello ${userId.value}")
}
val ctxRoutes2 = ContextRoutes[AnotherVal, IO](ctxRoutes)
But I can't get it compile nor how to access the second Context in the route definition
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to combine multiple context routes
But I can't get it compile nor how to access the second Context in the route definition
Thanks
Beta Was this translation helpful? Give feedback.
All reactions