(c fiber.Ctx, message string, data interface{})
| 98 | } |
| 99 | |
| 100 | func (h *handler) responseCreated(c fiber.Ctx, message string, data interface{}) error { |
| 101 | return c.Status(fiber.StatusCreated).JSON(fiber.Map{ |
| 102 | "status": "success", |
| 103 | "message": message, |
| 104 | "data": data, |
| 105 | }) |
| 106 | } |
| 107 | |
| 108 | func (h *handler) pluralize(value string, count int) string { |
| 109 | if count == 1 { |