File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Sources/VaporRouting/Documentation.docc Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ import VaporRouting
9494let siteRouter = OneOf {
9595 // Maps the URL "/users/:userId/books/:bookId" to the
9696 // SiteRouter.userBook enum case.
97- Route (.case (SiteRouter .userBook )) {
97+ Route (.case (SiteRoute .userBook )) {
9898 Path { " users" ; Digits (); " books" ; Digits () }
9999 }
100100
@@ -119,7 +119,7 @@ func siteHandler(
119119 route : SiteRoute
120120) async throws -> any AsyncResponseEncodable {
121121 switch route {
122- case .userBook (userId : userId, bookId : bookId):
122+ case let .userBook (userId : userId, bookId : bookId):
123123 async let user = database.fetchUser (user.id )
124124 async let book = database.fetchBook (book.id )
125125 return BookResponse (... )
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ import VaporRouting
106106let siteRouter = OneOf {
107107 // Maps the URL "/users/:userId/books/:bookId" to the
108108 // SiteRouter.userBook enum case.
109- Route (.case (SiteRouter .userBook )) {
109+ Route (.case (SiteRoute .userBook )) {
110110 Path { " users" ; Digits (); " books" ; Digits () }
111111 }
112112
@@ -131,7 +131,7 @@ func siteHandler(
131131 route : SiteRoute
132132) async throws -> any AsyncResponseEncodable {
133133 switch route {
134- case .userBook (userId : userId, bookId : bookId):
134+ case let .userBook (userId : userId, bookId : bookId):
135135 async let user = database.fetchUser (user.id )
136136 async let book = database.fetchBook (book.id )
137137 return BookResponse (... )
You can’t perform that action at this time.
0 commit comments