diff --git a/src/fetch/openapi.ts b/src/fetch/openapi.ts index 16a0366..664cac9 100644 --- a/src/fetch/openapi.ts +++ b/src/fetch/openapi.ts @@ -18,22 +18,8 @@ export default new OpenApiBuilder() description: pkg.description, }) .addExternalDocs({ url: pkg.homepage, description: "Extra documentation" }) - .addSecurityScheme("auth-key", { type: "http", scheme: "bearer" }) + //.addSecurityScheme("auth-key", { type: "http", scheme: "bearer" }) - .addPath("/health", { - get: { - tags: [TAGS.MONITORING], - summary: "Performs health checks and checks if the database is accessible", - responses: {200: { description: "OK", content: { "text/plain": {example: "OK"}} } }, - }, - }) - .addPath("/metrics", { - get: { - tags: [TAGS.MONITORING], - summary: "Prometheus metrics", - responses: {200: { description: "Prometheus metrics", content: { "text/plain": { example: await registry.metrics(), schema: { type: "string" } } }}}, - }, - }) .addPath("/moduleHash", { get: { tags: [TAGS.USAGE], @@ -62,6 +48,20 @@ export default new OpenApiBuilder() responses: {200: { description: "OK", content: { "text/plain": {example: "OK"}} } }, }, }) + .addPath("/health", { + get: { + tags: [TAGS.MONITORING], + summary: "Performs health checks and checks if the database is accessible", + responses: {200: { description: "OK", content: { "text/plain": {example: "OK"}} } }, + }, + }) + .addPath("/metrics", { + get: { + tags: [TAGS.MONITORING], + summary: "Prometheus metrics", + responses: {200: { description: "Prometheus metrics", content: { "text/plain": { example: await registry.metrics(), schema: { type: "string" } } }}}, + }, + }) .addPath("/openapi", { get: { tags: [TAGS.DOCS],