MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / responseCreated

Method responseCreated

api/pkg/handlers/handler.go:100–106  ·  view source on GitHub ↗
(c fiber.Ctx, message string, data interface{})

Source from the content-addressed store, hash-verified

98}
99
100func (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
108func (h *handler) pluralize(value string, count int) string {
109 if count == 1 {

Callers 4

StoreMethod · 0.80
StoreMethod · 0.80
StoreMethod · 0.80
StoreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected