Added authentication for the node against the api server. Cleaned up routes
This commit is contained in:
@@ -49,6 +49,7 @@ public class NodesController : Controller
|
||||
var node = Mapper.Map<Node>(request);
|
||||
|
||||
node.Token = Formatter.GenerateString(32);
|
||||
node.TokenId = Formatter.GenerateString(6);
|
||||
|
||||
var finalNode = await NodeRepository.Add(node);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user