by homami · 4y ago · 0 comments
pipe(
decoder.decode(req.body)
, E.mapLeft(_ex => new InputValidationError(decoder.decode(req.body)))
, RTE.fromEither
, RTE.chain(handleInput)
, RTE.match(
error => {
res.status(500);
res.send(error)
},
result => {
res.send(result)
}
)
)(reader)No comments yet.