This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add generate_peer_id Adding a helper to coco::control to help with generating a random PeerId * Add track endpoint We're adding an endpoint so that we can explicitly track a particular peer for a particular project. * Upper case POST Co-authored-by: Nuno Alexandre <hi@nunoalexandre.com> * Fix track endpoint We fix the track endpoint to be PUT and have a path of `/<urn>/track/<peer_id>`. This better represents the idempotent semantics of tracking a peer. * Format Co-authored-by: Nuno Alexandre <hi@nunoalexandre.com>
- Loading branch information
1 parent
b9e5a08
commit f6d9dfd
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters