Mateu
02/27/2024, 12:09 PMAleksei Tirman [JB]
02/27/2024, 12:38 PMMateu
02/27/2024, 1:14 PMget<Either<String, String>>{
val result : Either<String, String> = "a".right()
call.respond(result)
}
phldavies
02/27/2024, 1:28 PMphldavies
02/27/2024, 1:30 PMEither
from a route would be to have an extension on PipelineContext<Unit, ApplicationCall>
that would handle calling the appropriate call.respond
based on if the either is Left or Rightphldavies
02/27/2024, 1:31 PMMateu
02/27/2024, 1:50 PM