diff --git a/api/src/pkg/controllers/entries_controller.go b/api/src/pkg/controllers/entries_controller.go index e156a55fd..9cc5f0310 100644 --- a/api/src/pkg/controllers/entries_controller.go +++ b/api/src/pkg/controllers/entries_controller.go @@ -34,10 +34,7 @@ func GetEntries(c *fiber.Ctx) error { }) } - return c.Status(fiber.StatusOK).JSON(fiber.Map{ - "error": false, - "entries": baseEntries, - }) + return c.Status(fiber.StatusOK).JSON(baseEntries) } func GetEntry(c *fiber.Ctx) error { @@ -51,8 +48,5 @@ func GetEntry(c *fiber.Ctx) error { unmarshallErr := json.Unmarshal([]byte(entryData.Entry), &fullEntry) utils.CheckErr(unmarshallErr) - return c.Status(fiber.StatusOK).JSON(fiber.Map{ - "error": false, - "msg": fullEntry, - }) + return c.Status(fiber.StatusOK).JSON(fullEntry) }