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
objectUserIdQueryParamMatcherextendsQueryParamDecoderMatcher[FUUID]("userId")
valroutes:HttpRoutes[F] =HttpRoutes.of[F]({
case req @GET->Root/"get":?UserIdQueryParamMatcher(userId) =>for {
result <- controller.get(userId)
res <- result.map(Ok(_)).getOrElse(NotFound())
} yield res
})
FUUIDVar
fromfuuid-http4s
provides support for extracting path params, but there's no support for extracting query params.It would essentially be something like
and use
@ChristopherDavenport if you agree this is useful, I can send a PR.
The text was updated successfully, but these errors were encountered: