From 66069aa0a90f5f1cc95d9f9cd813d0f5797b37ac Mon Sep 17 00:00:00 2001 From: NurAlan Date: Wed, 3 Dec 2025 15:01:36 +0700 Subject: [PATCH] fix: bug documentation --- src/modules/auth/router.ts | 3 +++ src/plugins/swagger.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/modules/auth/router.ts b/src/modules/auth/router.ts index c07c2b5..888aa79 100644 --- a/src/modules/auth/router.ts +++ b/src/modules/auth/router.ts @@ -36,6 +36,9 @@ export const router = new Elysia({ }, { body: createMerchantBody, response: createMerchantResponseSchema, + detail: { + security: [{ basicAuth: [] }], + }, }) export default router diff --git a/src/plugins/swagger.ts b/src/plugins/swagger.ts index 81c4b25..2b35eec 100644 --- a/src/plugins/swagger.ts +++ b/src/plugins/swagger.ts @@ -27,6 +27,10 @@ export const swaggerPlugin = openapi({ ], 'components': { securitySchemes: { + basicAuth: { + type: 'http', + scheme: 'basic', + }, apiKey: { type: 'apiKey', in: 'header',