Skip to content

Instantly share code, notes, and snippets.

@pgordon9
Created September 26, 2016 05:05
Show Gist options
  • Save pgordon9/4b16c34e191d078588ae9777a0c20b6b to your computer and use it in GitHub Desktop.
Save pgordon9/4b16c34e191d078588ae9777a0c20b6b to your computer and use it in GitHub Desktop.
Start Server. JettyExample | parkergordon.io
{...}
object JettyExample {
{...}
val server = createServer()
def main(args: Array[String]) = {
{...}
server.start()
println(s"Server started on ${port()} with routes: '$incrementRoute'")
server.join()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment