From 9d6ecb638e5ea9c09ed4e881bff529cb092abec6 Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 20 Aug 2025 11:29:51 +0530 Subject: [PATCH] changes --- src/routes/supplierRoute.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/routes/supplierRoute.js b/src/routes/supplierRoute.js index c65c62f7..f522c8f9 100644 --- a/src/routes/supplierRoute.js +++ b/src/routes/supplierRoute.js @@ -65,11 +65,7 @@ module.exports = function (fastify, opts, next) { }, }, // Body is not needed; keep empty schema or remove `body` entirely - body: { - type: "object", - additionalProperties: false, - properties: {}, - }, + security: [{ basicAuth: [] }], }, handler: validationHandler.getSupplierswithoutbooking, // or `exports.getSuppliers` if wired directly