MCPcopy Create free account
hub / github.com/SwishHQ/spread / GetAppById

Method GetAppById

src/controller/app_controller.go:55–63  ·  view source on GitHub ↗
(c *fiber.Ctx)

Source from the content-addressed store, hash-verified

53}
54
55func (controller *appControllerImpl) GetAppById(c *fiber.Ctx) error {
56 id := c.Params("id")
57 app, err := controller.appService.GetAppById(context.Background(), id)
58 if err != nil {
59 logger.L.Error("In GetAppById: Error getting app", zap.Error(err))
60 return utils.ErrorResponse(c, err.Error())
61 }
62 return utils.SuccessResponse(c, app)
63}

Callers

nothing calls this directly

Calls 3

ErrorResponseFunction · 0.92
SuccessResponseFunction · 0.92
GetAppByIdMethod · 0.65

Tested by

no test coverage detected