Create HTTP endpoint on node-red startup


Hi everyone,

what I am trying to achieve is to have an HTTP endpoint available that serves information for several different nodes.

I am aware of the solution brought forward here. But my requirement is a little different as I need the data from the endpoint even when a configuration node is not set, yet.

I was also trying to play around with functionGlobalContext and including RED.httpAdmin.get(...), but RED is not available in this context.

Is there a way to achieve this already?




Urm. Surely you need some kind of lconfig?

Maybe I’m not getting it?

Uibuilder will give you an endpoint but I’m not sure if that’s what you want.