aboutsummaryrefslogblamecommitdiff
path: root/bot/src/dotty/tools/bot/BotServer.scala
blob: 5ce8a83e768536c9191f0d4a156af1df001dce5d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}