Passport/pkg/server/profiles_api.go
2024-01-28 00:42:02 +08:00

13 lines
221 B
Go

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)
}