Skip to content

Commit 8603e6d

Browse files
committed
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.
1 parent bcf2feb commit 8603e6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/routes/index.router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ router
6868
clientName: process.env.DATABASE_CONNECTION_CLIENT_NAME,
6969
manager: !serverConfig.DISABLE_MANAGER ? `${req.protocol}://${req.get('host')}/manager` : undefined,
7070
documentation: `https://doc.evolution-api.com`,
71+
whatsappWebVersion: process.env.CONFIG_SESSION_PHONE_VERSION,
7172
});
7273
})
7374
.post('/verify-creds', authGuard['apikey'], async (req, res) => {

0 commit comments

Comments
 (0)