Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fix: default value for options
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodisabatino committed Jan 16, 2021
1 parent 1f9875b commit de303b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const isPathExcluded = (options, path) => {
})
}

const instrument = (server, options) => {
const instrument = (server, options = {}) => {
const opt = Object.assign({ url: '/metrics' }, options)

const middleware = (req, res, next) => {
Expand Down

0 comments on commit de303b5

Please sign in to comment.