Passport/pkg/server/profiles_api.go

13 lines
221 B
Go
Raw Normal View History

2024-01-27 16:42:02 +00:00
package server
import (
"code.smartsheep.studio/hydrogen/passport/pkg/models"
"github.com/gofiber/fiber/v2"
)
func aboutMe(c *fiber.Ctx) error {
user := c.Locals("principal").(models.Account)
return c.JSON(user)
}