🐛 Fix endpoint conflict again...
This commit is contained in:
parent
24395b698e
commit
2d181bfdaf
@ -46,13 +46,13 @@ func MapAPIs(app *fiber.App, baseURL string) {
|
|||||||
{
|
{
|
||||||
relations.Get("/", listRelationship)
|
relations.Get("/", listRelationship)
|
||||||
relations.Get("/:relatedId", getRelationship)
|
relations.Get("/:relatedId", getRelationship)
|
||||||
relations.Patch("/:relatedId", editRelationship)
|
relations.Put("/:relatedId", editRelationship)
|
||||||
relations.Delete("/:relatedId", deleteRelationship)
|
relations.Delete("/:relatedId", deleteRelationship)
|
||||||
|
|
||||||
relations.Post("/", makeFriendship)
|
relations.Post("/", makeFriendship)
|
||||||
relations.Post("/:relatedId", makeFriendship)
|
relations.Post("/:relatedId", makeFriendship)
|
||||||
relations.Put("/:relatedId", acceptFriend)
|
relations.Post("/:relatedId/accept", acceptFriend)
|
||||||
relations.Delete("/:relatedId", declineFriend)
|
relations.Post("/:relatedId/decline", declineFriend)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user