can i send a msg to the node red debug from a template node? i made a site with the http in - template - http out and i want that when i click a button (not a submit button, just a ) the node red debug receives some message like the value or anything.
i thought about change the msg.payload and return it on the debug but how do i do that? i already asked here how do i change a flow variable inside the template node but nothing yet
My appologies, I completely threw the part about using http-in nodes out of my brain and ploughed for the usual dashboard example.
As @bakman2 points out - you have to take care of posting data from the front-end to the back end & has provided a working example too.
My only advice would be use a parameterised endpoint e.g. web1/api/v1/:fn then you can post to URLs like web1/api/v1/create or web1/api/v1/update or web1/api/v1/delete and in your function test what is in msg.req.params.fn to route your messages as required by the intended fn.