refactor(server): rename stuff from Lysand to Versia

Big diff energy
This commit is contained in:
DevMiner 2024-08-27 19:59:12 +02:00
parent 03e01548dc
commit cb135706e2
29 changed files with 103 additions and 96 deletions

View file

@ -29,5 +29,5 @@ func New(followService service.FollowService, federationService service.Federati
}
func (i *Handler) Register(r fiber.Router) {
r.Get("/api/follows/:id", i.GetLysandFollow)
r.Get("/api/follows/:id", i.GetVersiaFollow)
}

View file

@ -6,7 +6,7 @@ import (
"github.com/lysand-org/versia-go/internal/api_schema"
)
func (i *Handler) GetLysandFollow(c *fiber.Ctx) error {
func (i *Handler) GetVersiaFollow(c *fiber.Ctx) error {
parsedRequestedFollowID, err := uuid.Parse(c.Params("id"))
if err != nil {
return api_schema.ErrBadRequest(map[string]any{"reason": "Invalid follow ID"})
@ -24,5 +24,5 @@ func (i *Handler) GetLysandFollow(c *fiber.Ctx) error {
})
}
return c.JSON(f.ToLysand())
return c.JSON(f.ToVersia())
}