Skip to content

Commit

Permalink
Use alias for PublicEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Mar 22, 2022
1 parent c3203bc commit 898faa1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import sttp.model.StatusCode
import sttp.tapir.Codec.PlainCodec
import sttp.tapir.generic.auto._
import sttp.tapir.json.circe.TapirJsonCirce
import sttp.tapir.{Codec, Endpoint, EndpointOutput, Schema, SchemaType, Tapir}
import sttp.tapir.{Codec, Endpoint, EndpointOutput, PublicEndpoint, Schema, SchemaType, Tapir}
import tsec.common.SecureRandomId

/** Helper class for defining HTTP endpoints. Import the members of this class when defining an HTTP API using tapir. */
Expand All @@ -26,7 +26,7 @@ class Http() extends Tapir with TapirJsonCirce with TapirSchemas with FLogging {
/** Base endpoint description for non-secured endpoints. Specifies that errors are always returned as JSON values corresponding to the
* [[Error_OUT]] class.
*/
val baseEndpoint: Endpoint[Unit, Unit, (StatusCode, Error_OUT), Unit, Any] =
val baseEndpoint: PublicEndpoint[Unit, (StatusCode, Error_OUT), Unit, Any] =
endpoint.errorOut(failOutput)

/** Base endpoint description for secured endpoints. Specifies that errors are always returned as JSON values corresponding to the
Expand Down

0 comments on commit 898faa1

Please sign in to comment.