🐛 Fix conflict on endpoints

This commit is contained in:
LittleSheep 2024-07-24 00:02:30 +08:00
parent cb0fefecfb
commit 24395b698e

View File

@ -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)