From 8603e6def0a3aaaf8cd1e6be40d36ae87f78c409 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Thu, 12 Jun 2025 18:08:18 -0300 Subject: [PATCH] feat(router): add whatsappWebVersion to response object - Included `whatsappWebVersion` in the response object to provide the version of the WhatsApp web session from the environment configuration. - This addition enhances the API's response with relevant session information for clients. --- src/api/routes/index.router.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/routes/index.router.ts b/src/api/routes/index.router.ts index 9c0ecd13..56cee843 100644 --- a/src/api/routes/index.router.ts +++ b/src/api/routes/index.router.ts @@ -68,6 +68,7 @@ router clientName: process.env.DATABASE_CONNECTION_CLIENT_NAME, manager: !serverConfig.DISABLE_MANAGER ? `${req.protocol}://${req.get('host')}/manager` : undefined, documentation: `https://doc.evolution-api.com`, + whatsappWebVersion: process.env.CONFIG_SESSION_PHONE_VERSION, }); }) .post('/verify-creds', authGuard['apikey'], async (req, res) => {