mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add warning if HTTP In node is missing path config
This commit is contained in:
@@ -48,6 +48,10 @@ module.exports = function(RED) {
|
||||
RED.nodes.createNode(this,n);
|
||||
if (RED.settings.httpNodeRoot !== false) {
|
||||
|
||||
if (!n.url) {
|
||||
this.warn(RED._("httpin.errors.missing-path"));
|
||||
return;
|
||||
}
|
||||
this.url = n.url;
|
||||
this.method = n.method;
|
||||
this.swaggerDoc = n.swaggerDoc;
|
||||
|
Reference in New Issue
Block a user