CurrentUser function
(ctx *fiber.Ctx)
| 21 | |
| 22 | // CurrentUser function |
| 23 | func (baseEndpoint *BaseEndpoint) CurrentUser(ctx *fiber.Ctx) (me *models.User, err error) { |
| 24 | me = ctx.Locals("currentUser").(*models.User) |
| 25 | return me, err |
| 26 | } |
| 27 | |
| 28 | // CurrentAccount function |
| 29 | func (baseEndpoint *BaseEndpoint) CurrentAccount(ctx *fiber.Ctx) (currentAccount *models.Account, err error) { |
no outgoing calls
no test coverage detected