Discovery set up

This commit is contained in:
mr
2026-01-15 13:35:11 +01:00
parent 39e3a6a135
commit 24cb25c350
12 changed files with 1015 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ func (o *PeerController) Get() {
// @Param id path string true "the peer id you want to partner"
// @Success 200 {peer} models.peer
// @router /:id/partner [post]
func (o *PeerController) Partner() {
func (o *PeerController) Nano() {
user, peerID, groups := oclib.ExtractTokenInfo(*o.Ctx.Request)
id := o.Ctx.Input.Param(":id")
o.Data["json"] = oclib.NewRequest(oclib.LibDataEnum(oclib.PEER), user, peerID, groups, nil).UpdateOne(map[string]interface{}{