on ac01fc5 help sign in
3 files changed+1−11
since splitsnapshots
unifiedsplit
Sources/App/configure.swift−6 Sources/App/routes.swift−4 cloud.yml+1−1
Sources/App/configure.swift−6
@@ -54,12 +54,6 @@ public func configure(_ config: inout Config, _ env: inout Environment, _ servic
5454 }
5555 }
5656
57− ws.get("test") { (ws, req) in
58− ws.onText({ (ws, text) in
59− ws.send("pong")
60− })
61− }
62−
6357 services.register(ws, as: WebSocketServer.self)
6458
6559}
Sources/App/routes.swift−4
@@ -16,10 +16,6 @@ public func routes(_ router: Router) throws {
1616 return postModel.getPost(for: try req.parameters.next(Int.self), on: req)
1717 }
1818
19− router.get("openSockets") { (req) in
20− return OpenSockets.sockets.count
21− }
22−
2319 // Example of configuring a controller
2420 let todoController = TodoController()
2521 router.get("todos", use: todoController.index)
cloud.yml+1−1
@@ -1,3 +1,3 @@
11type: "vapor"
2−swift_version: "4.2.0"
2+swift_version: "4.1.0"
33run_parameters: "serve --port 8080 --hostname 0.0.0.0"