Skip to content

Commit

Permalink
Update buildRouter() to use addMiddleware, use RC 6
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Sep 9, 2024
1 parent 1bfd931 commit ecc50ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
.executable(name: "{{HB_EXECUTABLE_NAME}}", targets: ["{{HB_EXECUTABLE_NAME}}"]),
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.4"),
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.6"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0")
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/App/Application+build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public func buildApplication(_ arguments: some AppArguments) async throws -> som
func buildRouter() -> Router<AppRequestContext> {
let router = Router(context: AppRequestContext.self)
// Add middleware
router.add {
router.addMiddleware {
// logging middleware
LogRequestsMiddleware(.info)
}
Expand Down

0 comments on commit ecc50ba

Please sign in to comment.