# httpNode endpoint - how to "remove"

**URL:** <https://discourse.nodered.org/t/httpnode-endpoint-how-to-remove/38995>\
**Category:** Developing Nodes\
**Created:** [12 January 2021 10:24 UTC](https://discourse.nodered.org/t/httpnode-endpoint-how-to-remove/38995 "2021-01-12T10:24:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [12 January 2021 10:24 UTC](https://discourse.nodered.org/t/httpnode-endpoint-how-to-remove/38995/1 "2021-01-12T10:24:37Z")

</div>

The `RED.httpNode.get` works fine and I can register a new endpoint.

2021-01-18 update:

Questions

1. How can I remove that endpoint?
2. Is there anywhere a list what endpoints are already defined?
3. What happens if an endpoint is define multiple times?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 January 2021 13:16 UTC](https://discourse.nodered.org/t/httpnode-endpoint-how-to-remove/38995/2 "2021-01-18T13:16:43Z")

</div>

Hi @hklages

unfortunately, the Express library we use doesn't provide a convenient API for removing routes. You can see how the HTTP In node tidies up its routes here: [node-red/21-httpin.js at master · node-red/node-red · GitHub](https://github.com/node-red/node-red/blob/master/packages/node_modules/@node-red/nodes/core/network/21-httpin.js#L266)

You will see that delves into the internals of Express to do the work via `RED.httpNode._router.stack`

If an endpoint is defined multiple times, then which was registered first will handle the request. If it doesn't respond to the request, it will fall to the next route that matches the request - and so on, down the stack.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 February 2021 13:16 UTC](https://discourse.nodered.org/t/httpnode-endpoint-how-to-remove/38995/3 "2021-02-01T13:16:45Z")

</div>

Closed on 1 February 2021 13:16 UTC

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