Skip to content

Instantly share code, notes, and snippets.

@dborovikov
Created January 21, 2016 15:06
Show Gist options
  • Select an option

  • Save dborovikov/6def35ce67469e4414f5 to your computer and use it in GitHub Desktop.

Select an option

Save dborovikov/6def35ce67469e4414f5 to your computer and use it in GitHub Desktop.
object HelloWorld extends App {
implicit val system = ActorSystem()
implicit val executor = system.dispatcher
implicit val materializer = ActorMaterializer()
val routes: Route = path("check") {
get {
complete("Hello, World")
}
}
Http().bindAndHandle(routes, "0.0.0.0", 8081)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment