Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh authored Apr 28, 2021
1 parent 6acb9ef commit fe903ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ const { router, setQueues, replaceQueues } = createBullBoard([
If you host your express service on a different path than root (/) ie. https://<server_name>/<sub_path>/, then you can add the following code to provide the configuration to the bull-board router. In this example the sub path will be `my-base-path`.

```js
const { router } = require('bull-board');
const Queue = require('bull')
const { createBullBoard } = require('bull-board')
const { BullAdapter } = require('bull-board/bullAdapter')

const someQueue = new Queue('someQueueName')

const { router } = createBullBoard([
new BullAdapter(someQueue),
])

// ... express server configuration

Expand Down

0 comments on commit fe903ee

Please sign in to comment.