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',