(value string, count int)
| 106 | } |
| 107 | |
| 108 | func (h *handler) pluralize(value string, count int) string { |
| 109 | if count == 1 { |
| 110 | return value |
| 111 | } |
| 112 | return value + "s" |
| 113 | } |
| 114 | |
| 115 | func (h *handler) userFromContext(c fiber.Ctx) entities.AuthContext { |
| 116 | if tokenUser, ok := c.Locals(middlewares.ContextKeyAuthUserID).(entities.AuthContext); ok && !tokenUser.IsNoop() { |