@@ -16,7 +16,7 @@ vapor new spark-connect-swift-web -n
1616``` bash
1717$ git diff HEAD
1818diff --git a/Package.swift b/Package.swift
19- index 477bcbd..3e7bb06 100644
19+ index 2edcc8f..dd918a9 100644
2020--- a/Package.swift
2121+++ b/Package.swift
2222@@ -4,13 +4,14 @@ import PackageDescription
@@ -28,7 +28,7 @@ index 477bcbd..3e7bb06 100644
2828 ],
2929 dependencies: [
3030 // 💧 A server-side Swift web framework.
31- .package(url: " https://github.com/vapor/vapor.git" , from: " 4.110.1 " ),
31+ .package(url: " https://github.com/vapor/vapor.git" , from: " 4.115.0 " ),
3232 // 🔵 Non-blocking, event-driven networking for Swift. Used for custom executors
3333 .package(url: " https://github.com/apple/swift-nio.git" , from: " 2.65.0" ),
3434+ .package(url: " https://github.com/apache/spark-connect-swift.git" , branch: " main" ),
@@ -43,17 +43,30 @@ index 477bcbd..3e7bb06 100644
4343 ],
4444 swiftSettings: swiftSettings
4545 ),
46- diff --git a/Sources/SparkConnectSwiftWebapp/routes.swift b/Sources/SparkConnectSwiftWebapp/routes.swift
47- index 2edcc8f..22313c8 100644
48- --- a/Sources/SparkConnectSwiftWebapp/routes.swift
49- +++ b/Sources/SparkConnectSwiftWebapp/routes.swift
50- @@ -1,4 +1,5 @@
46+ diff --git a/Sources/SparkConnectSwiftWeb/configure.swift b/Sources/SparkConnectSwiftWeb/configure.swift
47+ index 7715d7c..eea2f95 100644
48+ --- a/Sources/SparkConnectSwiftWeb/configure.swift
49+ +++ b/Sources/SparkConnectSwiftWeb/configure.swift
50+ @@ -2,6 +2,7 @@ import Vapor
51+
52+ // configures your application
53+ public func configure(_ app: Application) async throws {
54+ + app.http.server.configuration.hostname = " 0.0.0.0"
55+ // uncomment to serve files from /Public folder
56+ // app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
57+
58+ diff --git a/Sources/SparkConnectSwiftWeb/routes.swift b/Sources/SparkConnectSwiftWeb/routes.swift
59+ index 2edcc8f..dd918a9 100644
60+ --- a/Sources/SparkConnectSwiftWeb/routes.swift
61+ +++ b/Sources/SparkConnectSwiftWeb/routes.swift
62+ @@ -1,11 +1,21 @@
5163 import Vapor
5264+import SparkConnect
5365
5466 func routes(_ app: Application) throws {
5567 app.get { req async in
56- @@ -6,6 +7,15 @@ func routes(_ app: Application) throws {
68+ - " It works!"
69+ + " Welcome to the Swift world. Say hello!"
5770 }
5871
5972 app.get(" hello" ) { req async -> String in
0 commit comments