MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / transform

Function transform

apps/api/src/app.ts:343–348  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

341 },
342 ...fastifyZodOpenApiTransformers,
343 transform(args) {
344 if (args.url === '/metrics') {
345 return { schema: { ...args.schema, hide: true }, url: args.url };
346 }
347 return fastifyZodOpenApiTransformers.transform(args);
348 },
349 });
350 await instance.register(fastifySwaggerUI, { routePrefix: '/documentation' });
351

Callers

nothing calls this directly

Calls 1

transformMethod · 0.80

Tested by

no test coverage detected