Defining the /register-nodes-bulk endpoint 

The final endpoint that we're going to build in this section will be the /register-nodes-bulk endpoint:

app.post('/register-nodes-bulk', function (req, res) {});

This endpoint will register multiple nodes at once.

Get Learn Blockchain Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.