Skip to content

Commit

Permalink
Hide bull routes from schema/openAPI generation (#762)
Browse files Browse the repository at this point in the history
This hides the bullboard routes from openAPI schema generation. These routes don't have a schema defined, so they aren't useful in that context.
  • Loading branch information
bcomnes authored Jun 5, 2024
1 parent 479a190 commit 3568146
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/fastify/src/FastifyAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export class FastifyAdapter implements IServerAdapter {
fastify.route({
method,
url,
schema: {
hide: true
},
handler: (_req, reply) => {
const { name, params } = handler({ basePath: this.basePath, uiConfig: this.uiConfig });

Expand All @@ -134,6 +137,9 @@ export class FastifyAdapter implements IServerAdapter {
fastify.route({
method: route.method,
url: route.route,
schema: {
hide: true
},
handler: async (request, reply) => {
const response = await route.handler({
queues: this.bullBoardQueues as any,
Expand Down

0 comments on commit 3568146

Please sign in to comment.