Skip to content

Instantly share code, notes, and snippets.

@adamw
Created May 18, 2020 08:05
Show Gist options
  • Save adamw/75535de3819bb3ad1477e0abd9944afc to your computer and use it in GitHub Desktop.
Save adamw/75535de3819bb3ad1477e0abd9944afc to your computer and use it in GitHub Desktop.
// the endpoints are now interpreted as an akka.http.scaladsl.Route
import akka.http.scaladsl.server.Route
import sttp.tapir.server.akkahttp._
val routes: Route = List(getPetWithLogic, addPetWithLogic).toRoute
// expose routes using akka-http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment