Created
June 7, 2019 19:20
-
-
Save adamw/414b2320349d9d934c75d0f08f985bca 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
implicit val runtime: DefaultRuntime = new DefaultRuntime {} | |
val serve = BlazeServerBuilder[Task] | |
.bindHttp(8080, "localhost") | |
.withHttpApp(Router("/" -> service).orNotFound) | |
.serve | |
.compile | |
.drain | |
runtime.unsafeRun(serve) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment