# Reach one route from another

**URL:** <https://discuss.elastic.co/t/reach-one-route-from-another/327929>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [March 17, 2023, 11:32am UTC](https://discuss.elastic.co/t/reach-one-route-from-another/327929 "2023-03-17T11:32:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iljaskajrris](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@iljaskajrris](https://discuss.elastic.co/u/iljaskajrris)\
**Post date:** [March 17, 2023, 11:32am UTC](https://discuss.elastic.co/t/reach-one-route-from-another/327929/1 "2023-03-17T11:32:31Z")

</div>

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

```auto
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
		})
	}
);

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 14, 2023, 11:32am UTC](https://discuss.elastic.co/t/reach-one-route-from-another/327929/2 "2023-04-14T11:32:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
