26 lines
699 B
Go
26 lines
699 B
Go
package controllers
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
func (c *Controller) UpdateListPipelines(ctx *fiber.Ctx) error {
|
|
err := c.service.UpdateListPipelines(ctx.Context())
|
|
|
|
if err != nil {
|
|
return ctx.Status(fiber.StatusInternalServerError).SendString("Internal Server Error")
|
|
}
|
|
return ctx.SendStatus(fiber.StatusOK)
|
|
}
|
|
|
|
func (c *Controller) GettingPipelinesFromCash(ctx *fiber.Ctx) error {
|
|
req, err := extractParams(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
response, err := c.service.GettingPipelinesFromCash(ctx.Context(), req)
|
|
if err != nil {
|
|
return ctx.Status(fiber.StatusInternalServerError).SendString("Internal Server Error")
|
|
}
|
|
return ctx.Status(fiber.StatusOK).JSON(response)
|
|
}
|