Created
May 4, 2019 12:25
-
-
Save adamw/9a02e05955de646875cd7fd81e662b91 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val baseEndpoint: Endpoint[Unit, (StatusCode, ErrorInfo), Unit, Nothing] = | |
endpoint | |
.in("api" / "v1.0") | |
.errorOut(statusCode.and(jsonBody[ErrorInfo])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment