🐛 Fix endpoint conflict again...

This commit is contained in:
LittleSheep 2024-07-24 00:04:21 +08:00
parent 24395b698e
commit 2d181bfdaf

View File

@ -46,13 +46,13 @@ func MapAPIs(app *fiber.App, baseURL string) {
{
relations.Get("/", listRelationship)
relations.Get("/:relatedId", getRelationship)
relations.Patch("/:relatedId", editRelationship)
relations.Put("/:relatedId", editRelationship)
relations.Delete("/:relatedId", deleteRelationship)
relations.Post("/", makeFriendship)
relations.Post("/:relatedId", makeFriendship)
relations.Put("/:relatedId", acceptFriend)
relations.Delete("/:relatedId", declineFriend)
relations.Post("/:relatedId/accept", acceptFriend)
relations.Post("/:relatedId/decline", declineFriend)
}
}