Created
April 9, 2017 10:16
-
-
Save konrad1977/b0f6779527aebeeddef2fb463d624173 to your computer and use it in GitHub Desktop.
Hello world in kitura
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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