package controllers

import "github.com/gofiber/fiber/v3"

// success wraps a payload in the standard API envelope.
func success(data any) fiber.Map {
	return fiber.Map{
		"data":  data,
		"error": nil,
	}
}
