Beispiel #1
0
        public PeerApiModel Connect([FromBody] PeerApiModel peer)
        {
            PeerApiModel thisPeer = NodeSynchornizator.AddNewlyConnectedPeer(peer);

            return(thisPeer);
        }
Beispiel #2
0
 public IActionResult Get()
 {
     return(Ok(NodeSynchornizator.Peers.Select(p => PeerApiModel.FromPeer(p)).ToList()));
 }