Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 21, 2023
1 parent e4f82ee commit b73f86f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ pathTemplater('http://localhost/:name/:name', { name: 'wcj' }) // => http://loca
pathTemplater('http://github.com/:owner/:repo', { owner: 'jaywcjlove', repo: 'path-templater' })
// => http://github.com/jaywcjlove/path-templater

pathTemplater(':apiBaseUrl/:owner/:repo', { owner: 'jaywcjlove', repo: 'path-templater', apiBaseUrl: 'http://github.com' })
pathTemplater(':apiBaseUrl/:owner/:repo', {
owner: 'jaywcjlove',
repo: 'path-templater',
apiBaseUrl: 'http://github.com'
})
// => http://github.com/jaywcjlove/path-templater

pathTemplater('http://localhost:3001/:name/:name', { name: 'wcj' })
Expand All @@ -35,7 +39,7 @@ pathTemplater('http://localhost:3001/:name/:name?id=:user', { name: 'wcj', user:
// => http://localhost:3001/wcj/wcj?id=jaywcjlove

pathTemplater(':apiBaseUrl/:owner/:repo', { owner: 'jaywcjlove', repo: 'path-templater' })
// => Could not find url parameter apiBaseUrl in passed options object;
// 🚨 => Could not find url parameter apiBaseUrl in passed options object;
```

## Contributors
Expand Down

0 comments on commit b73f86f

Please sign in to comment.