Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLotU authored Jun 20, 2018
1 parent 70af6fd commit 8e57b27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Installation
Vapor Monitoring can be installed using SPM
```swift
.package(url: "https://github.com/vapor-community/VaporMonitoring.git", from: "0.1.0")
.package(url: "https://github.com/vapor-community/VaporMonitoring.git", from: "1.0.0")
```

## Usage
Expand All @@ -19,10 +19,11 @@ Vapor Monitoring requires a few things to work correclty, a `MonitoredRouter` an

To set up your monitoring, in your `Configure.swift` file, add the following:
```swift
// If you don't use middleware use this:
let router = try VaporMonitoring.setupMonitoring(&config, &services)
services.register(router, as: Router.self)

// If you use middleware use the following method:
// If you use middleware use the following instead:
let middlewareConfig = MiddlewareConfig()
let router = try VaporMonitoring.setupMonitoring(&config, &services, &middlewareConfig)

Expand Down

0 comments on commit 8e57b27

Please sign in to comment.