# How can i get the access url in node layer

**URL:** <https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739>\
**Category:** Kibana\
**Created:** [June 23, 2016, 6:36am UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739 "2016-06-23T06:36:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [June 23, 2016, 6:36am UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739/1 "2016-06-23T06:36:23Z")

</div>

kibana is a plugin and which contains:

1. /app/kibana#/visualize'
2. '/app/kibana#/dashboard'
3. '/app/kibana#/settings'  
4./app/kibana#/visualize

which all are routed by ng-routes, so the access url i get from node layer all are '/app/kibana',  
but how can i know which detailed url is accessed in node route layer?

---

<div class="post-metadata">

**Author:** ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)\
**Post date:** [June 23, 2016, 2:53pm UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739/2 "2016-06-23T14:53:45Z")

</div>

@whoami,

1. /app/kibana#/visualize'
2. '/app/kibana#/dashboard'
3. '/app/kibana#/settings'
4. /app/kibana#/visualize

These are all client-side routes, but it sounds like you're trying to work with them in the kibana server code? What exactly are you trying to accomplish?

Client-side urls are defined in places like [this](https://github.com/elastic/kibana/blob/master/src/plugins/kibana/public/visualize/editor/editor.js#L22), and then are consumed in client-side urls like [this](https://github.com/elastic/kibana/blob/master/src/plugins/kibana/index.js#L41-L71). But then there are also server-side routes defined like [this](https://github.com/elastic/kibana/blob/master/src/plugins/kibana/server/routes/api/settings/register_get.js#L5) that can be accessed via ajax or angular html calls.

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [June 24, 2016, 1:32am UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739/3 "2016-06-24T01:32:48Z")

</div>

I am trying to make some access level on these. so I have to get the client-side access url in node layer

---

<div class="post-metadata">

**Author:** ![wq\_Huang](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wq\_Huang](https://discuss.elastic.co/u/wq_Huang)\
**Post date:** [June 24, 2016, 2:14am UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739/4 "2016-06-24T02:14:28Z")

</div>

do you mean access control based on app's url?I am trying to do that too but with no luck...

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [June 28, 2016, 1:44am UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739/5 "2016-06-28T01:44:43Z")

</div>

that's not the right answer of my question. I think if plugin with client-side route, then we cannot get their route in node layer, right?

---

<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:** [July 6, 2017, 1:49pm UTC](https://discuss.elastic.co/t/how-can-i-get-the-access-url-in-node-layer/53739/6 "2017-07-06T13:49:05Z")

</div>

Closed on July 6, 2017, 1:49pm UTC


