Skip to content

Commit

Permalink
Update README.md - addServices in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Mar 14, 2024
1 parent 50c4d55 commit 15e94ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ router.get("redis") { request, _ -> String in
return String(describing: info)
}
// create application using router
let app = Application(
var app = Application(
router: router,
configuration: .init(address: .hostname("127.0.0.1", port: 8080))
)
app.addServices(redis)
// run hummingbird application
try await app.runService()
```

0 comments on commit 15e94ae

Please sign in to comment.