Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created April 10, 2016 14:43
Show Gist options
  • Save guilleiguaran/b7564ec3b246c410e5f2f778be88da21 to your computer and use it in GitHub Desktop.
Save guilleiguaran/b7564ec3b246c410e5f2f778be88da21 to your computer and use it in GitHub Desktop.
import Kitura
import KituraNet
import KituraSys
let router = Router()
router.get("/") {
request, response, next in
response.send("Hello, World!")
next()
}
let server = HttpServer.listen(8090, delegate: router)
Server.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment