feat: Implement auto-run interval for triggers of completed flows
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
3715291df7
commit
22e1fe5c44
13
packages/backend/src/helpers/inject-bull-board-handler.ts
Normal file
13
packages/backend/src/helpers/inject-bull-board-handler.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Application } from 'express';
|
||||
import { ExpressAdapter } from '@bull-board/express';
|
||||
|
||||
const injectBullBoardHandler = async (
|
||||
app: Application,
|
||||
serverAdapter: ExpressAdapter
|
||||
) => {
|
||||
const queueDashboardBasePath = '/admin/queues';
|
||||
serverAdapter.setBasePath(queueDashboardBasePath);
|
||||
app.use(queueDashboardBasePath, serverAdapter.getRouter());
|
||||
};
|
||||
|
||||
export default injectBullBoardHandler;
|
Reference in New Issue
Block a user