diff options
Diffstat (limited to 'bot/src/dotty/tools/bot/BotServer.scala')
-rw-r--r-- | bot/src/dotty/tools/bot/BotServer.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bot/src/dotty/tools/bot/BotServer.scala b/bot/src/dotty/tools/bot/BotServer.scala new file mode 100644 index 000000000..5ce8a83e7 --- /dev/null +++ b/bot/src/dotty/tools/bot/BotServer.scala @@ -0,0 +1,18 @@ +package dotty.tools.bot + +import org.http4s.server.{ Server, ServerApp } +import org.http4s.server.blaze._ + +import scalaz.concurrent.Task + +object Main extends ServerApp with PullRequestService { + + /** Services mounted to the server */ + final val services = prService + + override def server(args: List[String]): Task[Server] = + BlazeBuilder + .bindHttp(8080, "localhost") + .mountService(services, "/api") + .start +} |