18 lines
247 B
Go

package me
import (
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn"
)
// Get ...
func Get(ctx aero.Context) error {
user := arn.GetUserFromContext(ctx)
if user == nil {
return ctx.JSON(nil)
}
return ctx.JSON(user)
}