(c fiber.Ctx)
| 31 | } |
| 32 | |
| 33 | func (h *handler) responseUnauthorized(c fiber.Ctx) error { |
| 34 | return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{ |
| 35 | "status": "error", |
| 36 | "message": "You are not authorized to carry out this request.", |
| 37 | "data": "Make sure your API key is set in the [X-API-Key] header in the request", |
| 38 | }) |
| 39 | } |
| 40 | |
| 41 | func (h *handler) responsePhoneAPIKeyUnauthorized(c fiber.Ctx, owner string, authCtx entities.AuthContext) error { |
| 42 | return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{ |
no outgoing calls
no test coverage detected