archetype-resources.Sources.main.swift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swift-example-archetype
Show all versions of swift-example-archetype
Creates a new swift example
import Swifter
import Foundation
let server = HttpServer()
server["/"] = { request in
return .OK(.Html("Hello from the fabric8 swift example"))
}
try server.start(8080)
print("Server has started ( port = 8080 ). Try to connect now...")
while true {
}