Skip to content

Instantly share code, notes, and snippets.

@konrad1977
Created April 9, 2017 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konrad1977/b0f6779527aebeeddef2fb463d624173 to your computer and use it in GitHub Desktop.
Save konrad1977/b0f6779527aebeeddef2fb463d624173 to your computer and use it in GitHub Desktop.
Hello world in kitura
import Kitura
let router = Router() router.get("/") { request, response, next in
response.send("Hello, World!")
next()
}
Kitura.addHTTPServer(onPort: 8090, with: router)
Kitura.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment