diff --git a/README.md b/README.md index 26b558f9..131805a0 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,15 @@ const { router, setQueues, replaceQueues } = createBullBoard([ If you host your express service on a different path than root (/) ie. https:////, 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