Skip to content

Commit

Permalink
add home page
Browse files Browse the repository at this point in the history
  • Loading branch information
saroar committed Nov 9, 2022
1 parent 7c0ea8a commit 0dc89e4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
60 changes: 30 additions & 30 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"location" : "https://github.com/AddaMeSPB/AddaMeRouteHandlers.git",
"state" : {
"branch" : "main",
"revision" : "348ca9d6137006c2cf136de3a05d9897aec4e422"
"revision" : "7369053e10ab7dec8f892f2eca83bd9cabc38281"
}
},
{
Expand All @@ -15,7 +15,7 @@
"location" : "https://github.com/AddaMeSPB/AddaSharedModels.git",
"state" : {
"branch" : "route",
"revision" : "1c4ccf8b6d0790b3f11600a0a33fe7393cae8edd"
"revision" : "e5353444c05246bc8428fd9919cf8f56a05f5abc"
}
},
{
Expand All @@ -41,17 +41,17 @@
"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"
}
},
{
"identity" : "async-kit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/async-kit.git",
"state" : {
"revision" : "c3329e444bafbb12d1d312af9191be95348a8175",
"version" : "1.13.0"
"revision" : "3be4b6418d1e8b835b0b1a1bee06b249faa4da5f",
"version" : "1.14.0"
}
},
{
Expand Down Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -257,44 +257,44 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio.git",
"state" : {
"revision" : "b4e0a274f7f34210e97e2f2c50ab02a10b549250",
"version" : "2.41.1"
"revision" : "edfceecba13d68c1c993382806e72f7e96feaa86",
"version" : "2.44.0"
}
},
{
"identity" : "swift-nio-extras",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-extras.git",
"state" : {
"revision" : "6c84d247754ad77487a6f0694273b89b83efd056",
"version" : "1.14.0"
"revision" : "91dd2d61fb772e1311bb5f13b59266b579d77e42",
"version" : "1.15.0"
}
},
{
"identity" : "swift-nio-http2",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-http2.git",
"state" : {
"revision" : "f9ab1c94c80d568efd762d2a638f25162691d766",
"version" : "1.22.1"
"revision" : "d6656967f33ed8b368b38e4b198631fc7c484a40",
"version" : "1.23.1"
}
},
{
"identity" : "swift-nio-ssl",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-nio-ssl.git",
"state" : {
"revision" : "ba7c0d7f82affc518147ea61d240330bf7f7ea9b",
"version" : "2.22.1"
"revision" : "4fb7ead803e38949eb1d6fabb849206a72c580f3",
"version" : "2.23.0"
}
},
{
"identity" : "swift-nio-transport-services",
"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"
}
},
{
Expand All @@ -320,26 +320,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-url-routing.git",
"state" : {
"revision" : "5bf79bb370015e43842a61d558a9ee053171124e",
"version" : "0.3.0"
"revision" : "f54c4f74e7884f7930560c08387817ce28271770",
"version" : "0.4.0"
}
},
{
"identity" : "vapor",
"kind" : "remoteSourceControl",
"location" : "https://github.com/vapor/vapor.git",
"state" : {
"revision" : "dda0de537e7906414dccd551e77095be1e34e3da",
"version" : "4.65.2"
"revision" : "0eacdf3c7eab6df493ce328f2e97c2873b3e1c1e",
"version" : "4.67.1"
}
},
{
"identity" : "vapor-routing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/vapor-routing.git",
"state" : {
"revision" : "f07b4d7618bf48b450ed11c9f85b74ba8b9bae6c",
"version" : "0.1.1"
"revision" : "d16c7f8ab95147862a554045463666ce9faed65e",
"version" : "0.1.2"
}
},
{
Expand All @@ -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"
}
}
],
Expand Down
5 changes: 5 additions & 0 deletions Sources/App/routes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dc89e4

Please sign in to comment.