node-red / cookbook.nodered.org

Node-RED Cookbook
http://cookbook.nodered.org
Apache License 2.0
84 stars 34 forks source link

Feedback on 'Create an HTTP Endpoint' #119

Closed UnmitigatedAudacity closed 1 year ago

UnmitigatedAudacity commented 1 year ago

I'm using NR with Home Assistant and I'm not sure if that makes a difference, but URLs given in the examples is: http://localhost:1880/hello but I get an error "Cannot GET /hello". Research shows it should be: http://localhost:1880/endpoint/hello which works fine. Would have saved some time if the examples were correct.

knolleary commented 1 year ago

Home Assistant applies a different configuration to the default one provided by Node-RED.

It mounts all http nodes under the endpoint URL.

The examples in the cookbook are aimed at the wider Node-RED audience, not just HA.