diff --git a/Package.resolved b/Package.resolved index 3804d6f..a56346e 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,7 +6,7 @@ "location" : "https://github.com/AddaMeSPB/AddaMeRouteHandlers.git", "state" : { "branch" : "main", - "revision" : "348ca9d6137006c2cf136de3a05d9897aec4e422" + "revision" : "7369053e10ab7dec8f892f2eca83bd9cabc38281" } }, { @@ -15,7 +15,7 @@ "location" : "https://github.com/AddaMeSPB/AddaSharedModels.git", "state" : { "branch" : "route", - "revision" : "1c4ccf8b6d0790b3f11600a0a33fe7393cae8edd" + "revision" : "e5353444c05246bc8428fd9919cf8f56a05f5abc" } }, { @@ -41,8 +41,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swift-server/async-http-client.git", "state" : { - "revision" : "fc510a39cff61b849bf5cdff17eb2bd6d0777b49", - "version" : "1.11.5" + "revision" : "10f42e647a15d6e5c0e9de2e081761d23730a249", + "version" : "1.13.0" } }, { @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/async-kit.git", "state" : { - "revision" : "c3329e444bafbb12d1d312af9191be95348a8175", - "version" : "1.13.0" + "revision" : "3be4b6418d1e8b835b0b1a1bee06b249faa4da5f", + "version" : "1.14.0" } }, { @@ -86,8 +86,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/fluent-kit.git", "state" : { - "revision" : "38670d2eefcba27530272946d627ac8d4e45f017", - "version" : "1.35.1" + "revision" : "be7912ee4991bcc8a5390fac0424d1d08221dcc6", + "version" : "1.36.1" } }, { @@ -122,8 +122,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/leaf.git", "state" : { - "revision" : "04f262edbee143cdfefc5b26cef704913712e16c", - "version" : "4.2.1" + "revision" : "bf1c27928c3f7f93fcdca570d7514727fa23e14e", + "version" : "4.2.2" } }, { @@ -212,8 +212,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-case-paths", "state" : { - "revision" : "7346701ea29da0a85d4403cf3d7a589a58ae3dee", - "version" : "0.9.2" + "revision" : "bb436421f57269fbcfe7360735985321585a86e5", + "version" : "0.10.1" } }, { @@ -257,8 +257,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio.git", "state" : { - "revision" : "b4e0a274f7f34210e97e2f2c50ab02a10b549250", - "version" : "2.41.1" + "revision" : "edfceecba13d68c1c993382806e72f7e96feaa86", + "version" : "2.44.0" } }, { @@ -266,8 +266,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-extras.git", "state" : { - "revision" : "6c84d247754ad77487a6f0694273b89b83efd056", - "version" : "1.14.0" + "revision" : "91dd2d61fb772e1311bb5f13b59266b579d77e42", + "version" : "1.15.0" } }, { @@ -275,8 +275,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-http2.git", "state" : { - "revision" : "f9ab1c94c80d568efd762d2a638f25162691d766", - "version" : "1.22.1" + "revision" : "d6656967f33ed8b368b38e4b198631fc7c484a40", + "version" : "1.23.1" } }, { @@ -284,8 +284,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-ssl.git", "state" : { - "revision" : "ba7c0d7f82affc518147ea61d240330bf7f7ea9b", - "version" : "2.22.1" + "revision" : "4fb7ead803e38949eb1d6fabb849206a72c580f3", + "version" : "2.23.0" } }, { @@ -293,8 +293,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-transport-services.git", "state" : { - "revision" : "4e02d9cf35cabfb538c96613272fb027dd0c8692", - "version" : "1.13.1" + "revision" : "c0d9a144cfaec8d3d596aadde3039286a266c15c", + "version" : "1.15.0" } }, { @@ -320,8 +320,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-url-routing.git", "state" : { - "revision" : "5bf79bb370015e43842a61d558a9ee053171124e", - "version" : "0.3.0" + "revision" : "f54c4f74e7884f7930560c08387817ce28271770", + "version" : "0.4.0" } }, { @@ -329,8 +329,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/vapor.git", "state" : { - "revision" : "dda0de537e7906414dccd551e77095be1e34e3da", - "version" : "4.65.2" + "revision" : "0eacdf3c7eab6df493ce328f2e97c2873b3e1c1e", + "version" : "4.67.1" } }, { @@ -338,8 +338,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/vapor-routing.git", "state" : { - "revision" : "f07b4d7618bf48b450ed11c9f85b74ba8b9bae6c", - "version" : "0.1.1" + "revision" : "d16c7f8ab95147862a554045463666ce9faed65e", + "version" : "0.1.2" } }, { @@ -365,8 +365,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", "state" : { - "revision" : "30314f1ece684dd60679d598a9b89107557b67d9", - "version" : "0.4.1" + "revision" : "16e6409ee82e1b81390bdffbf217b9c08ab32784", + "version" : "0.5.0" } } ], diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index 7ebad9b..fedd449 100644 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -2,6 +2,11 @@ import Fluent import Vapor func routes(_ app: Application) throws { + + app.get { req in + try await req.view.render("index") + } + try app.group("v1") { api in let chat = api.grouped("chat") let webSocketController = WebSocketController(eventLoop: app.eventLoopGroup.next(), db: app.db)