diff --git a/pkg/internal/server/api/index.go b/pkg/internal/server/api/index.go index ce10c53..ccfa58e 100644 --- a/pkg/internal/server/api/index.go +++ b/pkg/internal/server/api/index.go @@ -46,7 +46,7 @@ func MapAPIs(app *fiber.App, baseURL string) { { relations.Get("/", listRelationship) relations.Get("/:relatedId", getRelationship) - relations.Put("/:relatedId", editRelationship) + relations.Patch("/:relatedId", editRelationship) relations.Delete("/:relatedId", deleteRelationship) relations.Post("/", makeFriendship)