Hi team, can you help me to reach one route from another like below I need to reach "client_ids" from the route "get_client"? My Kibana is 7.10.2. Thanks in advance
router.get(
{
path: '/api/clients',
validate: false,
},
async (context, req, response) => {
return response.ok({
body: clientsList
})
}
);
router.get(
{
path: '/api/get_client',
validate: false,
},
async (context, req, response) => {
const extractClient = someFunction("/api/client_ids")
return response.ok({
body: extractClient.myclientData
})
}
);