MCPcopy Create free account
hub / github.com/devinterface/startersaas-go-api / CurrentUser

Method CurrentUser

endpoints/base.endpoint.go:23–26  ·  view source on GitHub ↗

CurrentUser function

(ctx *fiber.Ctx)

Source from the content-addressed store, hash-verified

21
22// CurrentUser function
23func (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
29func (baseEndpoint *BaseEndpoint) CurrentAccount(ctx *fiber.Ctx) (currentAccount *models.Account, err error) {

Callers 15

IndexMethod · 0.80
ByIDMethod · 0.80
CreateMethod · 0.80
UpdateMethod · 0.80
AddUserMethod · 0.80
RemoveUserMethod · 0.80
SubscribeMethod · 0.80
RefreshTokenMethod · 0.80
MeMethod · 0.80
UpdateMeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected