mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
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:
parent
bcf2febf48
commit
8603e6def0
@ -68,6 +68,7 @@ router
|
|||||||
clientName: process.env.DATABASE_CONNECTION_CLIENT_NAME,
|
clientName: process.env.DATABASE_CONNECTION_CLIENT_NAME,
|
||||||
manager: !serverConfig.DISABLE_MANAGER ? `${req.protocol}://${req.get('host')}/manager` : undefined,
|
manager: !serverConfig.DISABLE_MANAGER ? `${req.protocol}://${req.get('host')}/manager` : undefined,
|
||||||
documentation: `https://doc.evolution-api.com`,
|
documentation: `https://doc.evolution-api.com`,
|
||||||
|
whatsappWebVersion: process.env.CONFIG_SESSION_PHONE_VERSION,
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.post('/verify-creds', authGuard['apikey'], async (req, res) => {
|
.post('/verify-creds', authGuard['apikey'], async (req, res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user