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.
This commit is contained in:
Davidson Gomes 2025-06-12 18:08:18 -03:00
parent bcf2febf48
commit 8603e6def0

View File

@ -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) => {