I'm trying to make a new endpoint everytime a node is connected to my server, and will be used only by that endpoint. But, right now I'm stucked in how to generate a new endpoint while the node.js program is running.
Here is a little ilustration of how I want it to works : First, the server (node.js) is up. (Endpoint => /start) Second, the node sending it's own uid. Third, the server received the data and make a new endpoint based from the node uid it's received. (Node uid = aaaa, New endpoint => /aaaa) Fourth, everytime a new node is up, it will back to the second step.
I can't any solution or references about this in the internet ...
Any advice ?
Thank you.