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

Method responseOK

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

Source from the content-addressed store, hash-verified

90}
91
92func (h *handler) responseOK(c fiber.Ctx, message string, data interface{}) error {
93 return c.Status(fiber.StatusOK).JSON(fiber.Map{
94 "status": "success",
95 "message": message,
96 "data": data,
97 })
98}
99
100func (h *handler) responseCreated(c fiber.Ctx, message string, data interface{}) error {
101 return c.Status(fiber.StatusCreated).JSON(fiber.Map{

Callers 15

IndexMethod · 0.80
UpsertMethod · 0.80
DeleteMethod · 0.80
UpsertFCMTokenMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80
DeleteMethod · 0.80
UpdateMethod · 0.80
IndexMethod · 0.80
DeleteMethod · 0.80
UpdateMethod · 0.80
ShowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected